浏览代码

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";
   };
 }