summaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2023-03-01 14:07:42 +0100
committerQuentin Aristote <quentin@aristote.fr>2023-03-01 14:07:42 +0100
commitd5f0c356a33ec0b5670595f9a5175a642acee900 (patch)
tree20fd86f2a7f2d3ccaab7781f48bcfb69ce865296 /nixos
parentbcb36beee78cf83c286e29036c869c5c42336ac4 (diff)
nixos: nix: upgrade flags: use personal lib
Diffstat (limited to 'nixos')
-rw-r--r--nixos/nix.nix11
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; };