diff --git a/hosts/andromache/host.nix b/hosts/andromache/host.nix index 6c04778b..8e5e361d 100644 --- a/hosts/andromache/host.nix +++ b/hosts/andromache/host.nix @@ -2,5 +2,6 @@ host = { username = "h"; name = "andromache"; + highRam = true; }; } diff --git a/hosts/astyanax/host.nix b/hosts/astyanax/host.nix index 10b1d027..c30db140 100644 --- a/hosts/astyanax/host.nix +++ b/hosts/astyanax/host.nix @@ -2,5 +2,6 @@ host = { username = "h"; name = "astyanax"; + highRam = true; }; } diff --git a/modules/boot/bootloader.nix b/modules/boot/bootloader.nix index d39e4ca6..a5e43b76 100644 --- a/modules/boot/bootloader.nix +++ b/modules/boot/bootloader.nix @@ -1,4 +1,11 @@ +{ config, ... }: + { - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; + boot = { + loader = { + systemd-boot.enable = true; + efi.canTouchEfiVariables = true; + }; + tmp.useTmpfs = config.host.highRam; + }; } diff --git a/modules/common/host.nix b/modules/common/host.nix index 124a0c60..75e975c7 100644 --- a/modules/common/host.nix +++ b/modules/common/host.nix @@ -19,5 +19,10 @@ type = lib.types.str; default = "en_US.UTF-8"; }; + + highRam = lib.mkOption { + type = lib.types.bool; + default = false; + }; }; }