services.pixiecore: add quick option
This commit is contained in:
parent
2b7c373016
commit
ff9dbe90d7
@ -23,7 +23,7 @@ in
|
|||||||
mode = mkOption {
|
mode = mkOption {
|
||||||
description = lib.mdDoc "Which mode to use";
|
description = lib.mdDoc "Which mode to use";
|
||||||
default = "boot";
|
default = "boot";
|
||||||
type = types.enum [ "api" "boot" ];
|
type = types.enum [ "api" "boot" "quick" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
debug = mkOption {
|
debug = mkOption {
|
||||||
@ -38,6 +38,12 @@ in
|
|||||||
description = lib.mdDoc "Handle DHCP traffic without binding to the DHCP server port";
|
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 {
|
kernel = mkOption {
|
||||||
type = types.str or types.path;
|
type = types.str or types.path;
|
||||||
default = "";
|
default = "";
|
||||||
@ -117,6 +123,8 @@ in
|
|||||||
then [ "boot" cfg.kernel ]
|
then [ "boot" cfg.kernel ]
|
||||||
++ optional (cfg.initrd != "") cfg.initrd
|
++ optional (cfg.initrd != "") cfg.initrd
|
||||||
++ optionals (cfg.cmdLine != "") [ "--cmdline" cfg.cmdLine ]
|
++ optionals (cfg.cmdLine != "") [ "--cmdline" cfg.cmdLine ]
|
||||||
|
else if cfg.mode == "quick"
|
||||||
|
then [ "quick" cfg.quick ]
|
||||||
else [ "api" cfg.apiServer ];
|
else [ "api" cfg.apiServer ];
|
||||||
in
|
in
|
||||||
''
|
''
|
||||||
|
Loading…
Reference in New Issue
Block a user