base: update options

This commit is contained in:
ooks-io 2024-10-29 16:43:27 +11:00
parent c9dfc440d1
commit 8402eb93e9

View file

@ -1,6 +1,10 @@
{lib, ...}: let
{
lib,
pkgs,
...
}: let
inherit (lib) mkOption;
inherit (lib.types) str enum bool;
inherit (lib.types) str enum bool package;
in {
options.ooknet.host = {
name = mkOption {
@ -13,10 +17,22 @@ in {
role = mkOption {
type = enum ["workstation" "server"];
};
boot = {
loader = mkOption {
type = enum ["systemd" "grub"];
default = "systemd";
};
kernel = mkOption {
type = package;
default = pkgs.linuxPackages_latest;
};
};
exitNode = mkOption {
type = bool;
default = false;
};
admin = {
name = mkOption {
type = str;