about summary refs log tree commit diff
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2020-08-18 16:04:58 +0200
committerProfpatsch <mail@profpatsch.de>2020-08-20 14:25:46 +0200
commit9a5910eb3c4d082d838cb84273c6423422501c28 (patch)
tree69857689f244dfbb6e60abc78ed248bcff73c2fd
parentc4ecce9a1927e148600d5a02143fed9a4bb84909 (diff)
machines/legosi: set min-free to 3G and optimize store
-rw-r--r--machines/profpatsch/legosi.nix24
1 files changed, 16 insertions, 8 deletions
diff --git a/machines/profpatsch/legosi.nix b/machines/profpatsch/legosi.nix
index 3b806b58..3278f240 100644
--- a/machines/profpatsch/legosi.nix
+++ b/machines/profpatsch/legosi.nix
@@ -16,14 +16,22 @@ in {
 
   config = {
     vuizvui.modifyNixPath = false;
-    nix.nixPath = [
-      "vuizvui=/root/vuizvui"
-      "nixpkgs=/root/nixpkgs"
-      # todo: nicer?
-      "nixos-config=${pkgs.writeText "legosi-configuration.nix" ''
-        (import <vuizvui/machines>).profpatsch.legosi.config
-      ''}"
-    ];
+    nix = {
+      nixPath = [
+        "vuizvui=/root/vuizvui"
+        "nixpkgs=/root/nixpkgs"
+        # todo: nicer?
+        "nixos-config=${pkgs.writeText "legosi-configuration.nix" ''
+          (import <vuizvui/machines>).profpatsch.legosi.config
+        ''}"
+      ];
+
+      extraOptions = ''
+        auto-optimise-store = true
+        min-free = ${toString (3 * 1024 * 1024 * 1024)}
+      '';
+
+    };
 
     vuizvui.user.profpatsch.server.sshPort = 7001;