This commit is contained in:
@ -12,63 +12,77 @@ let
|
||||
key = mkOption { type = types.str; };
|
||||
};
|
||||
};
|
||||
netOpt = with lib; {
|
||||
wlp = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
nif = mkOption {
|
||||
type = types.str;
|
||||
default = "";
|
||||
};
|
||||
};
|
||||
wg = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
ip4 = mkOption {
|
||||
type = types.str;
|
||||
default = "";
|
||||
};
|
||||
ip6 = mkOption {
|
||||
type = types.str;
|
||||
default = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
makeOpt = with lib; {
|
||||
cli = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
};
|
||||
gui = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
virt = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
};
|
||||
power = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
game = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
develop = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
serverOpt = with lib; {
|
||||
hostDomain = mkOption {type = types.str;};
|
||||
mailDomain = mkOption {type = types.str;};
|
||||
mailServer = mkOption {type = types.str;};
|
||||
|
||||
dbHost = mkOption {type = types.str; default = "localhost";};
|
||||
dbPort = mkOption {type = types.str; default = "3306";};
|
||||
|
||||
configPath = mkOption {type=types.str; default= "/media/config";};
|
||||
dataPath = mkOption {type=types.str; default= "/media/data";};
|
||||
|
||||
};
|
||||
in with lib; {
|
||||
options.usercfg = userOpt;
|
||||
options.syscfg = {
|
||||
hostname = mkOption { type = types.str; };
|
||||
defaultUser = mkOption { type = types.str; };
|
||||
make = {
|
||||
cli = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
};
|
||||
gui = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
virt = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
};
|
||||
power = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
game = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
develop = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
net = {
|
||||
wlp = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
nif = mkOption {
|
||||
type = types.str;
|
||||
default = "";
|
||||
};
|
||||
};
|
||||
wg = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
ip4 = mkOption {
|
||||
type = types.str;
|
||||
default = "";
|
||||
};
|
||||
ip6 = mkOption {
|
||||
type = types.str;
|
||||
default = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
make = makeOpt;
|
||||
net = netOpt;
|
||||
users = mkOption {
|
||||
type = types.listOf (types.submodule { options = userOpt; });
|
||||
default = [ ];
|
||||
|
Reference in New Issue
Block a user