Compare commits

...

2 Commits

Author SHA1 Message Date
stupidcomputer ef4716c476 add a wrapper for nix-gc 2024-10-29 00:09:25 -05:00
stupidcomputer d0b8013497 reduce log file prevalance on netbox 2024-10-29 00:09:06 -05:00
2 changed files with 11 additions and 0 deletions

View File

@ -59,6 +59,10 @@
stateVersion = "23.05"; # don't change this, lol stateVersion = "23.05"; # don't change this, lol
}; };
services.journald.extraConfig = ''
SystemMaxUse=1G
'';
system.userActivationScripts = { system.userActivationScripts = {
copyEssentialConfiguration = { copyEssentialConfiguration = {
# we don't want to bring in the entirety of home-manager for this, so just # we don't want to bring in the entirety of home-manager for this, so just

7
builds/rebuild/nix-sanitation Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
printf "clearing out nix caches\n"
sudo nix-collect-garbage -d
nix-collect-garbage -d
sudo nix-store --optimize