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) mkOption;
|
||||||
inherit (lib.types) str enum bool;
|
inherit (lib.types) str enum bool package;
|
||||||
in {
|
in {
|
||||||
options.ooknet.host = {
|
options.ooknet.host = {
|
||||||
name = mkOption {
|
name = mkOption {
|
||||||
|
|
@ -13,10 +17,22 @@ in {
|
||||||
role = mkOption {
|
role = mkOption {
|
||||||
type = enum ["workstation" "server"];
|
type = enum ["workstation" "server"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
boot = {
|
||||||
|
loader = mkOption {
|
||||||
|
type = enum ["systemd" "grub"];
|
||||||
|
default = "systemd";
|
||||||
|
};
|
||||||
|
kernel = mkOption {
|
||||||
|
type = package;
|
||||||
|
default = pkgs.linuxPackages_latest;
|
||||||
|
};
|
||||||
|
};
|
||||||
exitNode = mkOption {
|
exitNode = mkOption {
|
||||||
type = bool;
|
type = bool;
|
||||||
default = false;
|
default = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
admin = {
|
admin = {
|
||||||
name = mkOption {
|
name = mkOption {
|
||||||
type = str;
|
type = str;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue