From 6735784bb78eb436d5a656adc040a1e6a87b65d8 Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Wed, 27 Dec 2023 13:21:46 +0400 Subject: [PATCH] nixos: nix flake lock /etc/nixos --update-input sp-modules --- nixos/module.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/module.nix b/nixos/module.nix index 20873a8..0afe10b 100644 --- a/nixos/module.nix +++ b/nixos/module.nix @@ -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 '';