give each device its own flake.nix to stop constant lock file changes causing merge issues
This commit is contained in:
@@ -188,11 +188,7 @@ with lib;
|
||||
})
|
||||
(mkIf (flakeUpdateLocation != null) {
|
||||
pre_commands = {
|
||||
nix-flake-update = "${(pkgs.writeShellScriptBin "nix-flake-update" ''
|
||||
git -C ${flakeUpdateLocation} pull --quiet
|
||||
sudo nix flake update --flake ${flakeUpdateLocation}
|
||||
git -C ${flakeUpdateLocation} diff-index --quiet HEAD flake.lock || git -C ${flakeUpdateLocation} commit --quiet flake.lock -m "update flake.lock"
|
||||
'')}/bin/nix-flake-update";
|
||||
nix-flake-update = "${(pkgs.writeShellScriptBin "nix-flake-update" "sudo nix flake update --flake ${flakeUpdateLocation}")}/bin/nix-flake-update";
|
||||
};
|
||||
})];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user