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

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