]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - modules/private/websites/tools/stats/default.nix
Use attrs for secrets instead of lists
[perso/Immae/Config/Nix.git] / modules / private / websites / tools / stats / default.nix
index 5f184bcc40b971c79f9574c81628cbaaf22c6ffd..71e31a3c4abea964695471c5e2aa9b585b965b82 100644 (file)
@@ -6,9 +6,8 @@ in
 {
   options.myServices.websites.tools.stats.enable = lib.mkEnableOption "Enable stats site";
   config = lib.mkIf cfg.enable {
-    secrets.keys = [
-      {
-        dest = "umami/env";
+    secrets.keys = {
+      "uami/env" = {
         permission = "0400";
         text = ''
           PORT=${toString myCfg.listenPort}
@@ -16,8 +15,8 @@ in
           DATABASE_URL=postgresql://${myCfg.postgresql.user}:${myCfg.postgresql.password}@localhost:${myCfg.postgresql.port}/${myCfg.postgresql.database}?sslmode=disable&host=${myCfg.postgresql.socket}
           HASH_SALT=${myCfg.hashSalt}
         '';
-      }
-    ];
+      };
+    };
 
     services.websites.env.tools.vhostConfs.stats = {
       certName = "eldiron";