diff --git a/hosts/srv-public/default.nix b/hosts/srv-public/default.nix index 3291384..e4123a8 100644 --- a/hosts/srv-public/default.nix +++ b/hosts/srv-public/default.nix @@ -67,6 +67,7 @@ privatebin = { enable = true; domain = "pastebin.${sproutedDomain}"; + branding.name = "SproutedBin"; }; openspeedtest = { diff --git a/modules/system/services/privatebin.nix b/modules/system/services/privatebin.nix index 788728e..864f13d 100644 --- a/modules/system/services/privatebin.nix +++ b/modules/system/services/privatebin.nix @@ -18,6 +18,10 @@ in type = lib.types.port; default = 61009; }; + branding.name = lib.mkOption { + type = lib.types.nonEmptyStr; + default = "PrivateBin"; + }; }; config = lib.mkIf cfg.enable { @@ -34,7 +38,10 @@ in package = pkgs-unstable.privatebin; # Unstable to get version 2.0 enableNginx = true; virtualHost = "privatebin"; - settings.main.basepath = "https://${cfg.domain}"; + settings.main = { + basepath = "https://${cfg.domain}"; + inherit (cfg.branding) name; + }; }; nginx.virtualHosts.privatebin.listen = [