init gc / autoUpgrade

This commit is contained in:
notohh 2022-12-06 21:49:46 -05:00
parent 6f3d902c67
commit fd44d23309
3 changed files with 11 additions and 1 deletions

View file

@ -146,8 +146,19 @@
nix = { nix = {
package = pkgs.nixFlakes; package = pkgs.nixFlakes;
extraOptions = "experimental-features = nix-command flakes"; extraOptions = "experimental-features = nix-command flakes";
settings.auto-optimise-store = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
}; };
system.autoUpgrade = {
enable = true;
channel = "https://nixos.org/channel/nixos-unstable";
};
hardware = { hardware = {
nvidia = { nvidia = {
powerManagement.enable = true; powerManagement.enable = true;

View file

@ -1 +0,0 @@