aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/common/core
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2025-06-04 12:44:39 -0700
committerMark Nipper <nipsy@bitgnome.net>2025-06-04 12:44:39 -0700
commitff22e223de0610ca183f9e0c060073e53f59be1a (patch)
treec72c9ca6a018a21ee6fcb03a317a8d77ee7717d9 /hosts/common/core
parenta162b72c84eaafb54c19eba0bd49de68a91be33c (diff)
downloadnix-ff22e223de0610ca183f9e0c060073e53f59be1a.tar
nix-ff22e223de0610ca183f9e0c060073e53f59be1a.tar.gz
nix-ff22e223de0610ca183f9e0c060073e53f59be1a.tar.bz2
nix-ff22e223de0610ca183f9e0c060073e53f59be1a.tar.lz
nix-ff22e223de0610ca183f9e0c060073e53f59be1a.tar.xz
nix-ff22e223de0610ca183f9e0c060073e53f59be1a.tar.zst
nix-ff22e223de0610ca183f9e0c060073e53f59be1a.zip
Clean up user home manager profiles
Diffstat (limited to 'hosts/common/core')
-rw-r--r--hosts/common/core/nix.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/hosts/common/core/nix.nix b/hosts/common/core/nix.nix
index 14252d8..608425f 100644
--- a/hosts/common/core/nix.nix
+++ b/hosts/common/core/nix.nix
@@ -24,6 +24,13 @@ in {
};
- systemd.services."nix-daemon".environment.TMPDIR = build-tmp;
+ systemd = {
+ services."nix-daemon".environment.TMPDIR = build-tmp;
+ user.services."nix-gc" = {
+ description = "Garbage collection for user profiles";
+ script = "/run/current-system/sw/bin/nix-collect-garbage --delete-older-than 30d";
+ startAt = "daily";
+ };
+ }
}