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 = targetPath: ''
echo 'nixos-rebuild build --flake ${targetPath} -L --keep-going'
nix-shell \
-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: {
@ -39,6 +40,7 @@ let
pkgs.file = toString ./pkgs;
system.file = toString ./system;
"flake.nix".file = toString ./flake.nix;
"configurations.nix".file = toString ./configurations.nix;
#backup-module.file = toString ~/dev/backup;
backup-module.git = {