Add 'old-conf/' from commit '62a64a79a8'
git-subtree-dir: old-conf git-subtree-mainline:4667974392git-subtree-split:62a64a79a8
This commit is contained in:
commit
83de52d5db
195 changed files with 13408 additions and 0 deletions
0
old-conf/packages/.gitkeep
Normal file
0
old-conf/packages/.gitkeep
Normal file
9
old-conf/packages/scripts.nix
Normal file
9
old-conf/packages/scripts.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ stdenv, ... }:
|
||||
stdenv.mkDerivation {
|
||||
name = "scripts";
|
||||
src = ./scripts;
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp * $out/bin
|
||||
'';
|
||||
}
|
||||
3
old-conf/packages/scripts/,
Executable file
3
old-conf/packages/scripts/,
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
nix shell nixpkgs#$1
|
||||
11
old-conf/packages/scripts/nosrebuild
Executable file
11
old-conf/packages/scripts/nosrebuild
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
REV=$(curl https://api.github.com/repos/thexyno/nixos-config/branches/main | jq -r .commit.sha)
|
||||
|
||||
if [[ $(uname) == "Linux" ]]; then
|
||||
sudo nixos-rebuild switch --flake "github:thexyno/nixos-config?rev=$REV" -L
|
||||
else # Darwin
|
||||
darwin-rebuild switch --flake "github:thexyno/nixos-config?rev=$REV" -L
|
||||
fi
|
||||
3
old-conf/packages/scripts/nr
Executable file
3
old-conf/packages/scripts/nr
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
nix run nixpkgs#$1
|
||||
Loading…
Add table
Add a link
Reference in a new issue