summaryrefslogtreecommitdiff
path: root/modules/nixos/personal
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2023-03-01 13:51:13 +0100
committerQuentin Aristote <quentin@aristote.fr>2023-03-01 14:04:24 +0100
commit857b17aa02062cc3e036e4049e37c11eb1a7e707 (patch)
tree170ad50688cfb5432e82ac6bb3ac154bf6558575 /modules/nixos/personal
parent21034a5a36d62fbad795c4139c98c32e0516ec93 (diff)
add updateInputFlag to library
Diffstat (limited to 'modules/nixos/personal')
-rw-r--r--modules/nixos/personal/nix.nix9
1 files changed, 3 insertions, 6 deletions
diff --git a/modules/nixos/personal/nix.nix b/modules/nixos/personal/nix.nix
index 24b5012..156f045 100644
--- a/modules/nixos/personal/nix.nix
+++ b/modules/nixos/personal/nix.nix
@@ -1,4 +1,4 @@
-{ config, lib, ... }:
+{ config, lib, pkgs, ... }:
let cfg = config.personal.nix;
in {
@@ -30,11 +30,8 @@ in {
flake = cfg.flake;
flags = if (cfg.flake == null) then
[ "--upgrade-all" ]
- else [
- "--update-input"
- "nixpkgs"
- "--commit-lock-file"
- ];
+ else
+ [ "--commit-lock-file" ] ++ pkgs.personal.lib.updateInputFlag "nixpkgs";
};
systemd.services = {
nix-gc.after =