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