aboutsummaryrefslogtreecommitdiff
path: root/vps-configuration.nix
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-09-23 15:35:53 -0300
committerEuAndreh <eu@euandre.org>2020-09-23 15:35:53 -0300
commit95656c9cff3f24e05f400d0bee5daedd2d30ad82 (patch)
tree280ebc691f0a5fcc2a729603fad80d78049bcf71 /vps-configuration.nix
parentRemove FIXME marker (already on TODOs.org) (diff)
downloadtoph-95656c9cff3f24e05f400d0bee5daedd2d30ad82.tar.gz
toph-95656c9cff3f24e05f400d0bee5daedd2d30ad82.tar.xz
Enable automatic GC of NixOS
Diffstat (limited to 'vps-configuration.nix')
-rw-r--r--vps-configuration.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/vps-configuration.nix b/vps-configuration.nix
index 4897b95..5c7d790 100644
--- a/vps-configuration.nix
+++ b/vps-configuration.nix
@@ -66,6 +66,18 @@ in {
interfaces.ens3.useDHCP = true;
};
+ nix = {
+ gc = {
+ automatic = true;
+ options = "--delete-older-than 7d";
+ };
+ # min-free 1G
+ extraOptions = ''
+ min-free = ${toString (1024 * 1024 * 1024)}
+ '';
+ };
+
+
environment = {
systemPackages = with pkgs; [
vim