fix: enable 'boot.tmp.useTmpfs' based on host 'highRam' flag
This commit is contained in:
@@ -2,5 +2,6 @@
|
|||||||
host = {
|
host = {
|
||||||
username = "h";
|
username = "h";
|
||||||
name = "andromache";
|
name = "andromache";
|
||||||
|
highRam = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,6 @@
|
|||||||
host = {
|
host = {
|
||||||
username = "h";
|
username = "h";
|
||||||
name = "astyanax";
|
name = "astyanax";
|
||||||
|
highRam = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user