From 6a8040a4cb2a3519b3b8fb9bfe8e2418c6212ef0 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Fri, 12 Nov 2021 11:44:52 +0100 Subject: [PATCH] Automatic garbage collection --- nixos/base.nix | 2 +- nixos/thor.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/base.nix b/nixos/base.nix index 0f1067a..66a2462 100644 --- a/nixos/base.nix +++ b/nixos/base.nix @@ -202,8 +202,8 @@ ''; security.pam.services.sddm.enableGnomeKeyring = true; - # Allow non free packages nixpkgs.config.allowUnfree = true; + nix.gc.automatic = true; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions diff --git a/nixos/thor.nix b/nixos/thor.nix index f1c7789..8ea5dd8 100644 --- a/nixos/thor.nix +++ b/nixos/thor.nix @@ -148,6 +148,7 @@ }; nixpkgs.config.allowUnfree = true; + nix.gc.automatic = true; system.stateVersion = "21.05"; # Did you read the comment? }