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 = {
nix.settings.experimental-features = [ "nix-command" "flakes" ]; settings = {
experimental-features = [ "nix-command" "flakes" ];
nix.optimise = { };
optimise = {
automatic = true; automatic = true;
dates = [ "daily" ]; dates = [ "daily" ];
}; };
gc = {
# Garbage collection -- Keep the system clean
nix.gc = {
automatic = true; automatic = true;
dates = "daily"; dates = "daily";
options = "--delete-older-than 30d"; options = "--delete-older-than 30d";
}; };
};
} }