From 0afbdaa261653e73a4f2f39d7529114989474a64 Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Sat, 11 Feb 2023 18:12:03 +0100 Subject: factor out common configuration options --- nixos/nix.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 nixos/nix.nix (limited to 'nixos/nix.nix') diff --git a/nixos/nix.nix b/nixos/nix.nix new file mode 100644 index 0000000..01f86e7 --- /dev/null +++ b/nixos/nix.nix @@ -0,0 +1,18 @@ +{ ... }: + +{ + personal.nix = { + enable = true; + autoUpgrade = true; + flake = "git+file:///home/qaristote/code/nix/machines/latitude-7490"; + gc.enable = true; + }; + + system.autoUpgrade.flags = + let update-input = input: [ "--update-input" input ]; + in update-input "home-manager" ++ update-input "nixos-hardware" + ++ [ "--impure" ]; + + # make auto-upgrade service lightweight + systemd.services.nixos-upgrade.unitConfig = { CPUWeight = 1; }; +} -- cgit v1.2.3