mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
remove niv residue
```fish
for d in {.,**/*}
if [ ! -d $d ]; continue; end
set from ./nix/sources.nix
set to ./npins
set from (realpath -s $from --relative-to $d)
set to (realpath -s $to --relative-to $d)
echo "($d, $from, $to)"
for f in $d/*
if [ ! -f $f ]; continue; end
sed -i "s=$from=$to=" $f
end
end
```
This commit is contained in:
parent
d93f2c3a1c
commit
8cc6d2b71c
22 changed files with 22 additions and 24 deletions
4
Justfile
4
Justfile
|
|
@ -5,7 +5,7 @@ os host action:
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
nixpkgs=$(nix-instantiate --eval -E "let sources = import ./nix/sources.nix; in sources.nixpkgs.outPath" | jq -r .)
|
||||
nixpkgs=$(nix-instantiate --eval -E "let sources = import ./npins; in sources.nixpkgs.outPath" | jq -r .)
|
||||
sudo nixos-rebuild {{ action }} \
|
||||
-I nixpkgs=${nixpkgs} \
|
||||
-I nixos-config=./nix/configurations/{{ host }}.nix \
|
||||
|
|
@ -17,7 +17,7 @@ install host:
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
nixpkgs=$(nix-instantiate --eval -E "let sources = import ./nix/sources.nix; in sources.nixpkgs.outPath" | jq -r .)
|
||||
nixpkgs=$(nix-instantiate --eval -E "let sources = import ./npins; in sources.nixpkgs.outPath" | jq -r .)
|
||||
sudo nixos-install \
|
||||
-I nixpkgs=${nixpkgs} \
|
||||
-I nixos-config=./nix/configurations/{{ host }}.nix \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue