diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-10-16 17:40:07 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-10-16 20:20:45 +0200 |
commit | 4c4652aabf2cb3ac8b40f2856eca07a1df9c27e0 (patch) | |
tree | 9a7ede9ac3f1899074e9ef568a447f883191d3b5 /modules/private/websites/tools/stats/default.nix | |
parent | da30ae4ffdd153a1eb32fb86f9ca9a65aa19e4e2 (diff) | |
download | Nix-4c4652aabf2cb3ac8b40f2856eca07a1df9c27e0.tar.gz Nix-4c4652aabf2cb3ac8b40f2856eca07a1df9c27e0.tar.zst Nix-4c4652aabf2cb3ac8b40f2856eca07a1df9c27e0.zip |
Use attrs for secrets instead of lists
Diffstat (limited to 'modules/private/websites/tools/stats/default.nix')
-rw-r--r-- | modules/private/websites/tools/stats/default.nix | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/private/websites/tools/stats/default.nix b/modules/private/websites/tools/stats/default.nix index 5f184bc..71e31a3 100644 --- a/modules/private/websites/tools/stats/default.nix +++ b/modules/private/websites/tools/stats/default.nix | |||
@@ -6,9 +6,8 @@ in | |||
6 | { | 6 | { |
7 | options.myServices.websites.tools.stats.enable = lib.mkEnableOption "Enable stats site"; | 7 | options.myServices.websites.tools.stats.enable = lib.mkEnableOption "Enable stats site"; |
8 | config = lib.mkIf cfg.enable { | 8 | config = lib.mkIf cfg.enable { |
9 | secrets.keys = [ | 9 | secrets.keys = { |
10 | { | 10 | "uami/env" = { |
11 | dest = "umami/env"; | ||
12 | permission = "0400"; | 11 | permission = "0400"; |
13 | text = '' | 12 | text = '' |
14 | PORT=${toString myCfg.listenPort} | 13 | PORT=${toString myCfg.listenPort} |
@@ -16,8 +15,8 @@ in | |||
16 | DATABASE_URL=postgresql://${myCfg.postgresql.user}:${myCfg.postgresql.password}@localhost:${myCfg.postgresql.port}/${myCfg.postgresql.database}?sslmode=disable&host=${myCfg.postgresql.socket} | 15 | DATABASE_URL=postgresql://${myCfg.postgresql.user}:${myCfg.postgresql.password}@localhost:${myCfg.postgresql.port}/${myCfg.postgresql.database}?sslmode=disable&host=${myCfg.postgresql.socket} |
17 | HASH_SALT=${myCfg.hashSalt} | 16 | HASH_SALT=${myCfg.hashSalt} |
18 | ''; | 17 | ''; |
19 | } | 18 | }; |
20 | ]; | 19 | }; |
21 | 20 | ||
22 | services.websites.env.tools.vhostConfs.stats = { | 21 | services.websites.env.tools.vhostConfs.stats = { |
23 | certName = "eldiron"; | 22 | certName = "eldiron"; |