summaryrefslogtreecommitdiff
path: root/config/store.nix
diff options
context:
space:
mode:
Diffstat (limited to 'config/store.nix')
-rw-r--r--config/store.nix13
1 files changed, 10 insertions, 3 deletions
diff --git a/config/store.nix b/config/store.nix
index 79c4f91..8efcd5d 100644
--- a/config/store.nix
+++ b/config/store.nix
@@ -1,8 +1,11 @@
-{ ... }:
+{ lib, ... }:
{
nix = {
- autoOptimiseStore = true;
+ settings = {
+ auto-optimise-store = true;
+ experimental-features = [ "nix-command" "flakes" ];
+ };
gc = {
automatic = true;
dates = "daily";
@@ -10,5 +13,9 @@
};
settings.max-jobs = lib.mkDefault 1;
};
- system.autoUpgrade.enable = true;
+ system.autoUpgrade = {
+ enable = true;
+ flake = "git+file:///etc/nixos/";
+ flags = [ "--update-input" "nixpkgs" "--commit-lock-file" ];
+ };
}