Run nix gc weekly

main
Amanda Graven 2023-10-03 17:03:44 +02:00
parent 8c1c1e864b
commit 33ba5078e7
4 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,12 @@
{ ... }:
# Configuration options for the nix package manager
{
nix.gc = {
# Run garbage collection automatically
automatic = true;
# Run it once a week
dates = "weekly";
options = "--delete-older-than 30d";
};
}

View File

@ -5,6 +5,7 @@
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./data/secrets/secrets.nix
../../common/configuration/nix.nix
../../common/services/ssh.nix
../../common/services/tailscale.nix
../../common/users.nix

View File

@ -5,6 +5,7 @@
[
./hardware-configuration.nix
./data/secrets/secrets.nix
../../common/configuration/nix.nix
../../common/services/ssh.nix
../../common/services/tailscale.nix
../../common/users.nix

View File

@ -3,6 +3,7 @@
{
imports = [
./hardware-configuration.nix
../../common/configuration/nix.nix
../../common/services/ssh.nix
../../common/services/tailscale.nix
../../common/users.nix