From d5f0c356a33ec0b5670595f9a5175a642acee900 Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Wed, 1 Mar 2023 14:07:42 +0100 Subject: nixos: nix: upgrade flags: use personal lib --- nixos/nix.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'nixos/nix.nix') 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; }; -- cgit v1.2.3