update nixos.nix

This commit is contained in:
albert 2024-04-17 11:25:49 +09:00
parent 23be1436c2
commit babd344bbc
No known key found for this signature in database
GPG key ID: 64F6C4EB46C4543A

View file

@ -1,16 +1,16 @@
{ ... }: {
# Enable flakes: https://nixos.wiki/wiki/Flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.optimise = {
automatic = true;
dates = ["daily"];
nix = {
settings = {
experimental-features = [ "nix-command" "flakes" ];
};
# Garbage collection -- Keep the system clean
nix.gc = {
optimise = {
automatic = true;
dates = [ "daily" ];
};
gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 30d";
};
};
}