This commit is contained in:
Ingolf Wagner 2021-09-24 07:02:16 +02:00
parent c6f9e7530c
commit 90f48d36a7
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 3 additions and 1 deletions

View file

@ -3,9 +3,10 @@ let
# command that ensures we use flake.nix during switch # command that ensures we use flake.nix during switch
command = targetPath: '' command = targetPath: ''
echo 'nixos-rebuild build --flake ${targetPath} -L --keep-going'
nix-shell \ nix-shell \
-E "with import <nixpkgs> {}; mkShell { buildInputs = [ git (nixos { nix.package = nixFlakes; }).nixos-rebuild ]; }" \ -E "with import <nixpkgs> {}; mkShell { buildInputs = [ git (nixos { nix.package = nixFlakes; }).nixos-rebuild ]; }" \
--run 'nixos-rebuild build --flake ${targetPath} -L --keep-going' --run 'nixos-rebuild build --flake ${targetPath} --keep-going --impure'
''; '';
secrets = name: { secrets = name: {
@ -39,6 +40,7 @@ let
pkgs.file = toString ./pkgs; pkgs.file = toString ./pkgs;
system.file = toString ./system; system.file = toString ./system;
"flake.nix".file = toString ./flake.nix; "flake.nix".file = toString ./flake.nix;
"configurations.nix".file = toString ./configurations.nix;
#backup-module.file = toString ~/dev/backup; #backup-module.file = toString ~/dev/backup;
backup-module.git = { backup-module.git = {