This commit is contained in:
insert 2024-05-04 08:33:43 -04:00
parent e2d8580c1b
commit e3b72e8e35
Signed by: insert
GPG key ID: A70775C389ACF105
2 changed files with 10 additions and 4 deletions

View file

@ -106,7 +106,7 @@
nix.settings.auto-optimise-store = true;
system.autoUpgrade.enable = false;
nix.gc = {
automatic = true;
automatic = false;
dates = "weekly";
options = "--delete-older-than 10d";
};
@ -226,6 +226,12 @@
];
};
programs.nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 10d --keep 5";
flake = "/home/insert/Documents/nixos";
};
services.rpcbind.enable = true; # needed for NFS
systemd.mounts = [{

View file

@ -170,9 +170,9 @@
programs.zsh = {
enable = true;
shellAliases = {
update = "sudo nixos-rebuild switch --flake /home/insert/Documents/nixos# -v --impure --upgrade --option commit-lockfile-summary 'Update flake.lock' --commit-lock-file";
update-locked = "sudo nixos-rebuild switch --flake /home/insert/Documents/nixos# -v --impure";
update-boot = "sudo nixos-rebuild boot --flake /home/insert/Documents/nixos# -v --impure";
update = "nh os switch -a /home/insert/Documents/nixos -- --impure --option commit-lockfile-summary 'Update flake.lock' --commit-lock-file";
update-locked = "nh os switch -a /home/insert/Documents/nixos -- --impure";
update-boot = "nh os boot -a /home/insert/Documents/nixos -- --impure";
garbage = "nix-collect-garbage";
};
initExtra = ''