attic: Upload after deployment
This commit is contained in:
parent
01dec3d0d6
commit
a5bb3bc14b
8 changed files with 13 additions and 12 deletions
|
@ -110,11 +110,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1687683133,
|
||||
"narHash": "sha256-fEjLznHh9vXMphTKupjHX6AaCQYnpkG6f28+bSUNM10=",
|
||||
"lastModified": 1687691275,
|
||||
"narHash": "sha256-VVywT8ubStvDPF5TscDBokT3T0l3zsOzCW056noh5zc=",
|
||||
"owner": "lnl7",
|
||||
"repo": "nix-darwin",
|
||||
"rev": "53c6748f98fd1e91f1e10f8878f1513743990101",
|
||||
"rev": "25ae710ba3cd448c5d5678788d37f3d149378bc0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -33,6 +33,14 @@ else
|
|||
deploy --skip-checks ".#$other_hostname"
|
||||
end
|
||||
|
||||
if test $status -eq 0
|
||||
if test "$other_hostname" = ""
|
||||
attic push nifoc-systems /run/current-system
|
||||
else
|
||||
ssh -t "$other_hostname" attic push nifoc-systems /run/current-system
|
||||
end
|
||||
end
|
||||
|
||||
rm -f result
|
||||
|
||||
popd
|
||||
|
|
|
@ -33,10 +33,6 @@
|
|||
trusted-users = [ "@admin" ];
|
||||
};
|
||||
|
||||
extraOptions = ''
|
||||
post-build-hook = ${../../home/programs/scripts/attic-system-cache}
|
||||
'';
|
||||
|
||||
configureBuildUsers = true;
|
||||
|
||||
distributedBuilds = true;
|
||||
|
|
|
@ -50,7 +50,6 @@ in
|
|||
experimental-features = nix-command flakes
|
||||
keep-derivations = true
|
||||
keep-outputs = true
|
||||
post-build-hook = ${../../home/programs/scripts/attic-system-cache}
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
@ -63,7 +63,6 @@ in
|
|||
experimental-features = nix-command flakes
|
||||
keep-derivations = true
|
||||
keep-outputs = true
|
||||
post-build-hook = ${../../home/programs/scripts/attic-system-cache}
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
@ -77,7 +77,6 @@ in
|
|||
extra-platforms = aarch64-linux
|
||||
keep-derivations = true
|
||||
keep-outputs = true
|
||||
post-build-hook = ${../../home/programs/scripts/attic-system-cache}
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
@ -92,7 +92,6 @@ in
|
|||
extra-platforms = aarch64-linux
|
||||
keep-derivations = true
|
||||
keep-outputs = true
|
||||
post-build-hook = ${../../home/programs/scripts/attic-system-cache}
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@ in
|
|||
|
||||
../nixos/git.nix
|
||||
|
||||
../nixos/attic.nix
|
||||
|
||||
../nixos/mosquitto.nix
|
||||
|
||||
../nixos/rtl_433.nix
|
||||
|
@ -49,7 +51,6 @@ in
|
|||
experimental-features = nix-command flakes
|
||||
keep-derivations = true
|
||||
keep-outputs = true
|
||||
post-build-hook = ${../../home/programs/scripts/attic-system-cache}
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue