modules/nixos/common: set narinfo-cache-negative-ttl for update
also drop booted-system check
This commit is contained in:
parent
b01db30564
commit
25e81d251e
1 changed files with 1 additions and 4 deletions
|
@ -2,14 +2,11 @@ arch=$(uname -m)
|
|||
hostname=$(uname -n)
|
||||
p=$(curl -L https://buildbot.nix-community.org/nix-outputs/nix-community/infra/master/"$arch"-linux.host-"$hostname")
|
||||
|
||||
if [[ "$(readlink /run/booted-system)" == "$p" ]]; then
|
||||
exit 0
|
||||
fi
|
||||
if [[ "$(readlink /run/current-system)" == "$p" ]]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
nix-store --realise "$p"
|
||||
nix-store --option narinfo-cache-negative-ttl 0 --realise "$p"
|
||||
nix-env --profile /nix/var/nix/profiles/system --set "$p"
|
||||
|
||||
booted="$(readlink /run/booted-system/{initrd,kernel,kernel-modules} && cat /run/booted-system/kernel-params)"
|
||||
|
|
Loading…
Add table
Reference in a new issue