Weekly garbage collection

This commit is contained in:
2023-11-20 14:53:36 +00:00
parent 07362a0c81
commit d78db40991
2 changed files with 32 additions and 14 deletions

View File

@ -46,20 +46,27 @@ with lib.my;
neovim neovim
]; ];
nix.settings = { nix = {
connect-timeout = 5; settings = {
log-lines = 25; connect-timeout = 5;
min-free = 128000000; log-lines = 25;
max-free = 1000000000; min-free = 128000000;
fallback = true; max-free = 1000000000;
auto-optimise-store = true; fallback = true;
substituters = [ auto-optimise-store = true;
"http://odyssey.mesh.vimium.net" substituters = [
"https://cache.nixos.org" "http://odyssey.mesh.vimium.net"
]; "https://cache.nixos.org"
trusted-public-keys = [ ];
"odyssey.mesh.vimium.net:ZhQhjscPWjoN4rlZwoMELznEiBnZ9O26iyGA27ibilQ=" trusted-public-keys = [
]; "odyssey.mesh.vimium.net:ZhQhjscPWjoN4rlZwoMELznEiBnZ9O26iyGA27ibilQ="
];
};
gc = {
automatic = true;
dates = "weekly";
options = "-d --delete-older-than 7d";
};
}; };
modules.desktop.gnome.enable = true; modules.desktop.gnome.enable = true;

View File

@ -34,6 +34,17 @@ with lib.my;
neovim neovim
]; ];
nix = {
settings = {
auto-optimise-store = true;
};
gc = {
automatic = true;
dates = "weekly";
options = "-d --delete-older-than 7d";
};
};
modules.networking.tailscale = { modules.networking.tailscale = {
enable = true; enable = true;
restrictSSH = false; restrictSSH = false;