Don't use tmpfs for small-mem hosts

This commit is contained in:
Root
2021-04-12 13:41:00 -07:00
parent bb1adafd1d
commit 6ee8509d99
4 changed files with 13 additions and 10 deletions
+9
View File
@@ -89,6 +89,13 @@ let
default = null;
};
tmp-on-tmpfs = mkOption {
type = bool;
description =
"Use tmpfs for /tmp. Great if you've got enough (>16G) RAM.";
default = true;
};
enable-gui = mkEnableOption "Install desktop GUI software.";
docker-server = mkEnableOption "Enable Docker on the current host.";
@@ -172,6 +179,8 @@ in {
autoPrune.enable = true;
};
boot.tmpOnTmpfs = host-cfg.tmp-on-tmpfs;
programs.ssh.knownHosts = let
keyed-hosts =
filterAttrs (host: opts: opts.ssh-pubkey != null) config.fudo.hosts;