nixos: optimize nix-store

This commit is contained in:
genofire 2021-10-13 01:13:27 +02:00
parent 86e6bd6184
commit def929e652
2 changed files with 4 additions and 1 deletions

View File

@ -12,7 +12,7 @@
]; ];
system.stateVersion = "21.05"; system.stateVersion = "21.05";
system.autoUpgrade.channel = "//nixos.org/channels/nixos-unstable"; system.autoUpgrade.channel = "https://nixos.org/channels/nixos-unstable";
# boot # boot
boot.zfs.requestEncryptionCredentials = []; # list -> default: true - always request for password boot.zfs.requestEncryptionCredentials = []; # list -> default: true - always request for password

View File

@ -6,8 +6,11 @@
{ {
system.autoUpgrade.enable = true; system.autoUpgrade.enable = true;
nix.optimise.automatic = true;
nix.gc.automatic = true;
networking.useDHCP = false; networking.useDHCP = false;
networking.firewall.enable = true; # is already enabled ...
services.openssh = { services.openssh = {
enable = true; enable = true;