diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2023-02-11 18:12:03 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2023-02-15 21:55:27 +0100 |
| commit | 0afbdaa261653e73a4f2f39d7529114989474a64 (patch) | |
| tree | 08df68b6c1a92708566e0e716d11d619e37d1621 /nixos/nix.nix | |
| parent | 7714f2c6a4c77e616fd3c64868c10337b9ca3a1e (diff) | |
factor out common configuration options
Diffstat (limited to 'nixos/nix.nix')
| -rw-r--r-- | nixos/nix.nix | 18 |
1 files changed, 18 insertions, 0 deletions
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; }; +} |
