summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/nix.nix14
1 files changed, 5 insertions, 9 deletions
diff --git a/config/nix.nix b/config/nix.nix
index a4f103e..540123d 100644
--- a/config/nix.nix
+++ b/config/nix.nix
@@ -1,11 +1,10 @@
-{
- pkgs,
- lib,
- ...
-}: {
+{lib, ...}: {
personal.nix = {
enable = true;
- autoUpgrade = true;
+ autoUpgrade = {
+ enable = true;
+ autoUpdateInputs = ["nixpkgs" "nixpkgs-unstable"];
+ };
gc.enable = true;
flake = "git+file:///etc/nixos/";
};
@@ -15,9 +14,6 @@
setFlakeRegistry = true;
};
- system.autoUpgrade.flags =
- pkgs.personal.lib.updateInputFlag "nixpkgs-unstable";
-
systemd.services.nixos-upgrade = {
# restart at most once every hour
serviceConfig = {