sp-modules: refactor options types

This commit is contained in:
Alexander Tomokhov 2023-12-28 12:54:59 +04:00
parent a32613ece4
commit 15f5d6096d
7 changed files with 12 additions and 17 deletions

View file

@ -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;
};
};

View file

@ -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;
};
};

View file

@ -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;
};
};

View file

@ -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;
};
};

View file

@ -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;
};
};

View file

@ -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 {

View file

@ -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;
};
};
}