mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-05 16:33:12 +00:00
sp-modules: refactor options types
This commit is contained in:
parent
a32613ece4
commit
15f5d6096d
|
@ -8,11 +8,10 @@ in
|
|||
options.selfprivacy.modules.bitwarden = {
|
||||
enable = lib.mkOption {
|
||||
default = false;
|
||||
type = with lib.types; nullOr bool;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
location = lib.mkOption {
|
||||
default = "sda1";
|
||||
type = with lib.types; nullOr str;
|
||||
type = lib.types.str;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -10,11 +10,10 @@ in
|
|||
options.selfprivacy.modules.gitea = {
|
||||
enable = lib.mkOption {
|
||||
default = false;
|
||||
type = with lib.types; nullOr bool;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
location = lib.mkOption {
|
||||
default = "sda1";
|
||||
type = with lib.types; nullOr str;
|
||||
type = lib.types.str;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ in
|
|||
options.selfprivacy.modules.jitsi-meet = {
|
||||
enable = lib.mkOption {
|
||||
default = false;
|
||||
type = with lib.types; nullOr bool;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -2,12 +2,11 @@
|
|||
{
|
||||
options.selfprivacy.modules.nextcloud = with lib; {
|
||||
enable = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
location = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = "sda1";
|
||||
type = types.str;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ in
|
|||
options.selfprivacy.modules.ocserv = {
|
||||
enable = lib.mkOption {
|
||||
default = false;
|
||||
type = with lib; types.nullOr types.bool;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -7,11 +7,10 @@ in
|
|||
options.selfprivacy.modules.pleroma = {
|
||||
enable = lib.mkOption {
|
||||
default = false;
|
||||
type = with lib; types.nullOr types.bool;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
location = lib.mkOption {
|
||||
default = "sda1";
|
||||
type = with lib; types.nullOr types.str;
|
||||
type = lib.types.str;
|
||||
};
|
||||
};
|
||||
config = lib.mkIf config.selfprivacy.modules.pleroma.enable {
|
||||
|
|
|
@ -3,11 +3,10 @@
|
|||
options.selfprivacy.modules.simple-nixos-mailserver = {
|
||||
enable = lib.mkOption {
|
||||
default = false;
|
||||
type = with lib.types; nullOr bool;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
location = lib.mkOption {
|
||||
default = "sda1";
|
||||
type = with lib.types; nullOr str;
|
||||
type = lib.types.str;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue