From 9d86db55a44b9d16145543114da21a08ee520bf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Mon, 19 Jun 2023 21:09:13 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20(hydrogen/system)=20add=20nix=20set?= =?UTF-8?q?tings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/hydrogen/system/nix/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 hosts/hydrogen/system/nix/default.nix diff --git a/hosts/hydrogen/system/nix/default.nix b/hosts/hydrogen/system/nix/default.nix new file mode 100644 index 0000000..4626f4b --- /dev/null +++ b/hosts/hydrogen/system/nix/default.nix @@ -0,0 +1,11 @@ +{ ... }: { + # optimizations + nix.settings.auto-optimise-store = true; + + # garbage collection + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; +}