Преглед изворни кода

bug(odin+agenix): set nullmailer user as owner

Zander Hawke пре 9 месеци
родитељ
комит
b55003038d
1 измењених фајлова са 5 додато и 3 уклоњено
  1. 5 3
      hosts/odin/age.nix

+ 5 - 3
hosts/odin/age.nix

@@ -1,11 +1,13 @@
-{ inputs, ... }:
+{ config, inputs, ... }:
 {
   imports = [ inputs.agenix.nixosModules.default ];
 
   age.identityPaths = [ "/persist/etc/ssh/ssh_host_ed25519_key" ];
   age.secrets = {
-    "odin/nullmailer/remotes".file =
-      inputs.secrets."odin/nullmailer/remotes";
+    "odin/nullmailer/remotes" = {
+      file = inputs.secrets."odin/nullmailer/remotes";
+      owner = config.services.nullmailer.user;
+    };
     "odin/thomas".file = inputs.secrets."odin/thomas";
   };
 }