Skip to content

Commit

Permalink
Merge pull request #21 from tgstation-operations/enable-nix-gc-god-da…
Browse files Browse the repository at this point in the history
…mn-it

enable nix auto gc and optimise
  • Loading branch information
ZephyrTFA authored Feb 18, 2025
2 parents 84a4ad7 + 752ee11 commit 8670b0d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 12 additions & 0 deletions modules/base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,18 @@

security.sudo.wheelNeedsPassword = false;

nix = {
gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 3d";
};
optimise = {
automatic = true;
dates = ["3:00"];
};
};

programs.git = {
enable = true;
lfs.enable = true;
Expand Down
6 changes: 0 additions & 6 deletions nixos_systems/relay-node/base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
trusted-users = ["@wheel"];
auto-optimise-store = true;
};
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};

environment.enableAllTerminfo = true; # Enables (stable) terminfo for a bunch of extra terminals that aren't in ncurses yet (ghostty, alacritty, kitty, etc)
Expand Down
6 changes: 0 additions & 6 deletions nixos_systems/relay-node/staging/base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
trusted-users = ["@wheel"];
auto-optimise-store = true;
};
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};

environment.enableAllTerminfo = true; # Enables (stable) terminfo for a bunch of extra terminals that aren't in ncurses yet (ghostty, alacritty, kitty, etc)
Expand Down

0 comments on commit 8670b0d

Please sign in to comment.