Loading nixos/modules/services/web-apps/hedgedoc.nix +11 −13 Original line number Diff line number Diff line { config, lib, pkgs, ... }: with lib; let inherit (lib) literalExpression mdDoc mkEnableOption mkIf mkOption mkPackageOptionMD mkRenamedOptionModule types versionAtLeast; cfg = config.services.hedgedoc; # 21.03 will not be an official release - it was instead 21.05. This Loading Loading @@ -32,6 +32,7 @@ in ]; options.services.hedgedoc = { package = mkPackageOptionMD pkgs "hedgedoc" { }; enable = mkEnableOption (lib.mdDoc "the HedgeDoc Markdown Editor"); groups = mkOption { Loading Loading @@ -107,6 +108,13 @@ in {option}`protocolUseSSL`. ''; }; enableStatsApi = mkOption { type = types.bool; default = false; description = lib.mdDoc '' Enables or disables the /status and /metrics endpoint. ''; }; hsts = { enable = mkOption { type = types.bool; Loading Loading @@ -1018,16 +1026,6 @@ in `HedgeDoc` is running. ''; }; package = mkOption { type = types.package; default = pkgs.hedgedoc; defaultText = literalExpression "pkgs.hedgedoc"; description = lib.mdDoc '' Package that provides HedgeDoc. ''; }; }; config = mkIf cfg.enable { Loading Loading @@ -1060,7 +1058,7 @@ in serviceConfig = { WorkingDirectory = cfg.workDir; StateDirectory = [ cfg.workDir cfg.settings.uploadsPath ]; ExecStart = "${cfg.package}/bin/hedgedoc"; ExecStart = "${lib.getExe cfg.package}"; EnvironmentFile = mkIf (cfg.environmentFile != null) [ cfg.environmentFile ]; Environment = [ "CMD_CONFIG_FILE=${cfg.workDir}/config.json" Loading Loading
nixos/modules/services/web-apps/hedgedoc.nix +11 −13 Original line number Diff line number Diff line { config, lib, pkgs, ... }: with lib; let inherit (lib) literalExpression mdDoc mkEnableOption mkIf mkOption mkPackageOptionMD mkRenamedOptionModule types versionAtLeast; cfg = config.services.hedgedoc; # 21.03 will not be an official release - it was instead 21.05. This Loading Loading @@ -32,6 +32,7 @@ in ]; options.services.hedgedoc = { package = mkPackageOptionMD pkgs "hedgedoc" { }; enable = mkEnableOption (lib.mdDoc "the HedgeDoc Markdown Editor"); groups = mkOption { Loading Loading @@ -107,6 +108,13 @@ in {option}`protocolUseSSL`. ''; }; enableStatsApi = mkOption { type = types.bool; default = false; description = lib.mdDoc '' Enables or disables the /status and /metrics endpoint. ''; }; hsts = { enable = mkOption { type = types.bool; Loading Loading @@ -1018,16 +1026,6 @@ in `HedgeDoc` is running. ''; }; package = mkOption { type = types.package; default = pkgs.hedgedoc; defaultText = literalExpression "pkgs.hedgedoc"; description = lib.mdDoc '' Package that provides HedgeDoc. ''; }; }; config = mkIf cfg.enable { Loading Loading @@ -1060,7 +1058,7 @@ in serviceConfig = { WorkingDirectory = cfg.workDir; StateDirectory = [ cfg.workDir cfg.settings.uploadsPath ]; ExecStart = "${cfg.package}/bin/hedgedoc"; ExecStart = "${lib.getExe cfg.package}"; EnvironmentFile = mkIf (cfg.environmentFile != null) [ cfg.environmentFile ]; Environment = [ "CMD_CONFIG_FILE=${cfg.workDir}/config.json" Loading