From def929e652e8cf32609979ff9fe8dfaa57a1665c Mon Sep 17 00:00:00 2001 From: genofire Date: Wed, 13 Oct 2021 01:13:27 +0200 Subject: [PATCH] nixos: optimize nix-store --- nixos/configuration.nix | 2 +- nixos/default.nix | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 3087a8a..c17697c 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -12,7 +12,7 @@ ]; system.stateVersion = "21.05"; - system.autoUpgrade.channel = "//nixos.org/channels/nixos-unstable"; + system.autoUpgrade.channel = "https://nixos.org/channels/nixos-unstable"; # boot boot.zfs.requestEncryptionCredentials = []; # list -> default: true - always request for password diff --git a/nixos/default.nix b/nixos/default.nix index 1ac4d6b..40a2b2a 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -6,8 +6,11 @@ { system.autoUpgrade.enable = true; + nix.optimise.automatic = true; + nix.gc.automatic = true; networking.useDHCP = false; + networking.firewall.enable = true; # is already enabled ... services.openssh = { enable = true;