diff options
Diffstat (limited to 'modules/gotify.nix')
-rw-r--r-- | modules/gotify.nix | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/modules/gotify.nix b/modules/gotify.nix index ad9b277..2a5dd55 100644 --- a/modules/gotify.nix +++ b/modules/gotify.nix @@ -4,17 +4,16 @@ libNginx, ... }: -with lib; let cfg = config.nixfiles.modules.gotify; in { options.nixfiles.modules.gotify = { - enable = mkEnableOption "Gotify"; + enable = lib.mkEnableOption "Gotify"; - domain = mkOption { + domain = lib.mkOption { description = "Domain name sans protocol scheme."; - type = with types; str; + type = lib.types.str; default = "gotify.${config.networking.domain}"; }; }; @@ -23,7 +22,7 @@ in let db = "gotify"; in - mkIf cfg.enable { + lib.mkIf cfg.enable { nixfiles.modules = { nginx = { enable = true; @@ -70,7 +69,7 @@ in ]; environment = { GOTIFY_DATABASE_DIALECT = "postgres"; - GOTIFY_DATABASE_CONNECTION = concatStringsSep " " [ + GOTIFY_DATABASE_CONNECTION = lib.concatStringsSep " " [ "host=/run/postgresql" "user=${db}" "dbname=${db}" |