services.pixiecore: add quick option
This commit is contained in:
parent
2b7c373016
commit
ff9dbe90d7
1 changed files with 9 additions and 1 deletions
|
@ -23,7 +23,7 @@ in
|
|||
mode = mkOption {
|
||||
description = lib.mdDoc "Which mode to use";
|
||||
default = "boot";
|
||||
type = types.enum [ "api" "boot" ];
|
||||
type = types.enum [ "api" "boot" "quick" ];
|
||||
};
|
||||
|
||||
debug = mkOption {
|
||||
|
@ -38,6 +38,12 @@ in
|
|||
description = lib.mdDoc "Handle DHCP traffic without binding to the DHCP server port";
|
||||
};
|
||||
|
||||
quick = mkOption {
|
||||
description = lib.mdDoc "Which quick option to use";
|
||||
default = "xyz";
|
||||
type = types.enum [ "arch" "centos" "coreos" "debian" "fedora" "ubuntu" "xyz" ];
|
||||
};
|
||||
|
||||
kernel = mkOption {
|
||||
type = types.str or types.path;
|
||||
default = "";
|
||||
|
@ -117,6 +123,8 @@ in
|
|||
then [ "boot" cfg.kernel ]
|
||||
++ optional (cfg.initrd != "") cfg.initrd
|
||||
++ optionals (cfg.cmdLine != "") [ "--cmdline" cfg.cmdLine ]
|
||||
else if cfg.mode == "quick"
|
||||
then [ "quick" cfg.quick ]
|
||||
else [ "api" cfg.apiServer ];
|
||||
in
|
||||
''
|
||||
|
|
Loading…
Reference in a new issue