summaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
Diffstat (limited to 'nixos')
-rw-r--r--nixos/configuration.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/nixos/configuration.nix b/nixos/configuration.nix
index 085bcf2..9b29fec 100644
--- a/nixos/configuration.nix
+++ b/nixos/configuration.nix
@@ -22,11 +22,10 @@
nixpkgs.config = { allowUnfree = true; };
nix = {
- # package = pkgs.nixUnstable;
- # extraOptions = ''
- # experimental-features = nix-command flakes
- # '';
- settings.auto-optimise-store = true;
+ settings = {
+ auto-optimise-store = true;
+ experimental-features = [ "nix-command" "flakes" ];
+ };
gc = {
automatic = true;
dates = "daily";
@@ -37,7 +36,8 @@
enable = true;
flags = [ "--upgrade-all" ];
};
- systemd.services.nix-gc.after = lib.mkIf config.system.autoUpgrade.enable [ "nixos-upgrade.service" ];
+ systemd.services.nix-gc.after =
+ lib.mkIf config.system.autoUpgrade.enable [ "nixos-upgrade.service" ];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.