privatebin: Use package from stable

This commit is contained in:
SebastianStork 2025-11-26 20:12:43 +01:00
parent 406b83a5f6
commit 9e23f7b37d
Signed by: SebastianStork
SSH key fingerprint: SHA256:iEM011ogNMG1q8+U500adGu/9rpPuZ2KnFtbdLeqTiI

View file

@ -1,9 +1,4 @@
{ { config, lib, ... }:
config,
pkgs-unstable,
lib,
...
}:
let let
cfg = config.custom.services.privatebin; cfg = config.custom.services.privatebin;
in in
@ -25,11 +20,6 @@ in
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
assertions = lib.singleton {
assertion = lib.versionOlder lib.version "25.11";
message = "TODO: Use privatebin package from stable nixpkgs";
};
meta = { meta = {
domains.local = [ cfg.domain ]; domains.local = [ cfg.domain ];
ports.tcp = [ cfg.port ]; ports.tcp = [ cfg.port ];
@ -38,7 +28,6 @@ in
services = { services = {
privatebin = { privatebin = {
enable = true; enable = true;
package = pkgs-unstable.privatebin; # Unstable to get version 2.0
enableNginx = true; enableNginx = true;
virtualHost = "privatebin"; virtualHost = "privatebin";
settings.main = { settings.main = {