mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
nixos/pocket-id: set ENCRYPTION_KEY in test
This variable will be required in version 2.
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user