nixos: nix flake lock /etc/nixos --update-input sp-modules

This commit is contained in:
Alexander Tomokhov 2023-12-27 13:21:46 +04:00
parent 400be88738
commit 6735784bb7

View file

@ -100,9 +100,9 @@ in
SendSIGKILL = "no";
};
script = ''
# relock sp-modules to absolute path (in terms of Nix) due to Nix bugs:
# https://github.com/NixOS/nix/issues/9339
${config.nix.package}/bin/nix flake lock /etc/nixos --override-input sp-modules /etc/nixos/sp-modules
# sync with sp-modules sub-flake
# (https://github.com/NixOS/nix/issues/9339)
${config.nix.package}/bin/nix flake lock /etc/nixos --update-input sp-modules
${pkgs.nixos-rebuild}/bin/nixos-rebuild switch --flake /etc/nixos#sp-nixos
'';