diff options
Diffstat (limited to 'nixpkgs/nixos/tests/codimd.nix')
-rw-r--r-- | nixpkgs/nixos/tests/codimd.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/nixpkgs/nixos/tests/codimd.nix b/nixpkgs/nixos/tests/codimd.nix index b1acbf4a8322..aa581dfeb584 100644 --- a/nixpkgs/nixos/tests/codimd.nix +++ b/nixpkgs/nixos/tests/codimd.nix @@ -21,7 +21,15 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: services = { codimd = { enable = true; - configuration.dbURL = "postgres://codimd:snakeoilpassword@localhost:5432/codimddb"; + configuration.dbURL = "postgres://codimd:\${DB_PASSWORD}@localhost:5432/codimddb"; + + /* + * Do not use pkgs.writeText for secrets as + * they will end up in the world-readable Nix store. + */ + environmentFile = pkgs.writeText "codimd-env" '' + DB_PASSWORD=snakeoilpassword + ''; }; postgresql = { enable = true; |