mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
gc fixes
This commit is contained in:
parent
5e975f4ba0
commit
f39ede8001
3 changed files with 3 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,4 +1,5 @@
|
|||
/result
|
||||
/result*
|
||||
secrets.nix
|
||||
*.swp
|
||||
*.swo
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ with pkgs.lib;
|
|||
''
|
||||
#!${pkgs.runtimeShell}
|
||||
export PATH=
|
||||
nix build ${concatMapStringsSep " " (host: builtins.unsafeDiscardStringContext host.config.system.build.toplevel.drvPath) hosts}
|
||||
nix build --no-link ${concatMapStringsSep " " (host: builtins.unsafeDiscardStringContext host.config.system.build.toplevel.drvPath) hosts}
|
||||
${concatMapStrings (host: ''
|
||||
echo "deploying ${host.config.networking.hostName}..."
|
||||
${host.config.system.build.deployScript} $1 &
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ in {
|
|||
set -xeo pipefail
|
||||
export PATH=${with pkgs; lib.makeBinPath [ coreutils openssh nix ]}
|
||||
export NIX_SSHOPTS="$NIX_SSHOPTS -p${toString cfg.ssh.port} -T"
|
||||
nix build ${ builtins.unsafeDiscardStringContext config.system.build.toplevel.drvPath} -o result-${config.networking.hostName}
|
||||
nix copy ${
|
||||
if cfg.substitute then "-s" else ""
|
||||
} --no-check-sigs --to ssh://root@${cfg.ssh.host} ${config.system.build.toplevel}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue