nixos/pocket-id: set ENCRYPTION_KEY in test

This variable will be required in version 2.
This commit is contained in:
Gutyina Gergő
2026-01-08 01:09:16 +01:00
parent eff07668ad
commit c3c16e4b0f

View File

@@ -1,5 +1,9 @@
{ lib, ... }:
{ pkgs, lib, ... }:
let
# !!! Don't do this with real keys. The /nix store is world-readable!
ENCRYPTION_KEY = pkgs.writeText "pocket-id-encryption-key" "SUeAyRRFZ1uf03ClOE+o++BVENSE/Ptb9YFRF2Sk+zM=";
in
{
name = "pocket-id";
meta.maintainers = with lib.maintainers; [
@@ -16,6 +20,9 @@
settings = {
PORT = 10001;
};
credentials = {
inherit ENCRYPTION_KEY;
};
};
};
@@ -32,6 +39,9 @@
DB_PROVIDER = "postgres";
DB_CONNECTION_STRING = "host=/run/postgresql user=${username} database=${username}";
};
credentials = {
inherit ENCRYPTION_KEY;
};
};
services.postgresql = {