Init
Initial commit, nodes are mostly done, panel is WIP
This commit is contained in:
commit
6761a7c440
73 files changed
+3413
No files matched your search
@@ -0,0 +1,31 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
firmware = config.vps.boot.firmware;
|
||||
in
|
||||
{
|
||||
options.vps.boot.firmware = mkOption {
|
||||
type = types.enum [
|
||||
"uefi"
|
||||
"bios"
|
||||
];
|
||||
};
|
||||
|
||||
config = {
|
||||
zramSwap.enable = true;
|
||||
|
||||
boot.loader =
|
||||
if firmware == "uefi" then {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = false;
|
||||
}
|
||||
else if firmware == "bios" then {
|
||||
grub.enable = true;
|
||||
}
|
||||
else throw "Unknown boot firmware type";
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user