chore: update nix.settings and nix.gc

This commit is contained in:
Oliver Davies 2023-06-03 11:08:16 +01:00
parent bf3d81656d
commit b906cc8a51

View file

@ -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