fix: enable 'boot.tmp.useTmpfs' based on host 'highRam' flag

This commit is contained in:
2026-04-26 15:00:54 +02:00
parent b66b0c4003
commit 83958847f4
4 changed files with 16 additions and 2 deletions

View File

@@ -2,5 +2,6 @@
host = { host = {
username = "h"; username = "h";
name = "andromache"; name = "andromache";
highRam = true;
}; };
} }

View File

@@ -2,5 +2,6 @@
host = { host = {
username = "h"; username = "h";
name = "astyanax"; name = "astyanax";
highRam = true;
}; };
} }

View File

@@ -1,4 +1,11 @@
{ config, ... }:
{ {
boot.loader.systemd-boot.enable = true; boot = {
boot.loader.efi.canTouchEfiVariables = true; loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
tmp.useTmpfs = config.host.highRam;
};
} }

View File

@@ -19,5 +19,10 @@
type = lib.types.str; type = lib.types.str;
default = "en_US.UTF-8"; default = "en_US.UTF-8";
}; };
highRam = lib.mkOption {
type = lib.types.bool;
default = false;
};
}; };
} }