Initial commit, nodes are mostly done, panel is WIP
This commit is contained in:
aloslider committed 2026-11-17 11:18:02 +03:00
commit 6761a7c440
73 files changed
+3413

No files matched your search

+31
View File
@@ -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";
};
}