summaryrefslogtreecommitdiff
path: root/config/store.nix
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2022-12-20 22:29:55 +0100
committerQuentin Aristote <quentin@aristote.fr>2022-12-20 22:29:55 +0100
commit95644485ac1402a8dc84c520a3ded7b29720f950 (patch)
treec124a795dba03106cadff1645c532f6251898f86 /config/store.nix
parent51df83cffaa45130f94bf5ab78b6b14fbb37ec4d (diff)
parent9bde3c4624eb916bafcf9a18792edb42e3a25a17 (diff)
Merge branch 'master' into searx-engine-alternativeto
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" ];
+ };
}