Skip to content

Commit

Permalink
make garbage collection the system's responsibility
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Jun 29, 2021
1 parent 7c94ee7 commit 0265bf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions gitea/configuration.nix
Expand Up @@ -290,4 +290,6 @@ in {
Group = "goatcounter";
};
};

nix.gc.automatic = true;
}
3 changes: 0 additions & 3 deletions gitea/deploy.sh
Expand Up @@ -14,6 +14,3 @@ set -x
nix-copy-closure --use-substitutes --to "$HOST" "$STORE_PATH"
ssh "$HOST" -- "sudo nix-env --profile /nix/var/nix/profiles/system --set ${STORE_PATH}"
ssh "$HOST" -- "sudo /nix/var/nix/profiles/system/bin/switch-to-configuration switch"

# collect garbage
ssh "$HOST" -- "nix-collect-garbage --delete-older-than 15d"

0 comments on commit 0265bf9

Please sign in to comment.