base: update options
This commit is contained in:
parent
c9dfc440d1
commit
8402eb93e9
1 changed files with 18 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue