diff options
Diffstat (limited to 'nixos/nix.nix')
| -rw-r--r-- | nixos/nix.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/nixos/nix.nix b/nixos/nix.nix index f8ee351..27198ac 100644 --- a/nixos/nix.nix +++ b/nixos/nix.nix @@ -1,4 +1,4 @@ -{ ... }: +{ pkgs, ... }: { personal.nix = { @@ -8,9 +8,12 @@ gc.enable = true; }; - system.autoUpgrade.flags = - let update-input = input: [ "--update-input" input ]; - in update-input "latitude-7490/nixpkgs" ++ update-input "latitude-7490/home-manager" ++ update-input "latitude-7490/nixos-hardware" ++ update-input "latitude-7490/my-nixpkgs"; + system.autoUpgrade.flags = pkgs.personal.lib.updateInputFlags [ + "latitude-7490/nixpkgs" + "latitude-7490/home-manager" + "latitude-7490/nixos-hardware" + "latitude-7490/my-nixpkgs" + ]; # make auto-upgrade service lightweight systemd.services.nixos-upgrade.unitConfig = { CPUWeight = 1; }; |
