From e6cee6d299ee2f01ec64182c9615d9664c05f0a3 Mon Sep 17 00:00:00 2001 From: Joakim Repomaa Date: Sun, 2 Feb 2025 21:45:21 +0200 Subject: [PATCH] apu: add support for nix-command and flakes, enable gc --- hosts/apu/configuration.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hosts/apu/configuration.nix b/hosts/apu/configuration.nix index dd46548..fd5ab08 100644 --- a/hosts/apu/configuration.nix +++ b/hosts/apu/configuration.nix @@ -116,6 +116,19 @@ in networking.hostName = "apu"; networking.useNetworkd = true; + nix = { + settings = { + experimental-features = [ "nix-command" "flakes" ]; + auto-optimise-store = true; + }; + + gc = { + automatic = true; + dates = "daily"; + options = "--delete-older-than 7d"; + }; + }; + systemd.network = { enable = true; config.networkConfig.IPv6Forwarding = true;