From b906cc8a51641d6805e615fe2d3638cc99828c13 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 3 Jun 2023 11:08:16 +0100 Subject: [PATCH] chore: update nix.settings and nix.gc --- system/nixos/nixedo/configuration.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/system/nixos/nixedo/configuration.nix b/system/nixos/nixedo/configuration.nix index 2ae9e7f2..68f5ca82 100644 --- a/system/nixos/nixedo/configuration.nix +++ b/system/nixos/nixedo/configuration.nix @@ -28,8 +28,6 @@ in { ./hardware-configuration.nix ]; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; - # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; @@ -176,6 +174,18 @@ in { zramSwap.enable = true; + nix.settings = { + warn-dirty = false; + auto-optimise-store = true; + experimental-features = [ "nix-command" "flakes" ]; + }; + + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + # Make Caps lock work as an Escape key on press and Ctrl on hold. services.interception-tools = let