apu: add support for nix-command and flakes, enable gc

This commit is contained in:
Joakim Repomaa
2025-02-02 21:45:21 +02:00
parent ea0738bcea
commit e6cee6d299

View File

@@ -116,6 +116,19 @@ in
networking.hostName = "apu"; networking.hostName = "apu";
networking.useNetworkd = true; 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 = { systemd.network = {
enable = true; enable = true;
config.networkConfig.IPv6Forwarding = true; config.networkConfig.IPv6Forwarding = true;