Forráskód Böngészése

bug(odin): can not find identity

Zander Hawke 9 hónapja
szülő
commit
cf3f6154b7
2 módosított fájl, 12 hozzáadás és 3 törlés
  1. 11 0
      hosts/odin/age.nix
  2. 1 3
      hosts/odin/default.nix

+ 11 - 0
hosts/odin/age.nix

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

+ 1 - 3
hosts/odin/default.nix

@@ -7,6 +7,7 @@
     outputs.modules.global.nix-config
     inputs.agenix.nixosModules.default
 
+    ./age.nix
     ./disko.nix
     ./impermanence.nix
     ./system.nix
@@ -15,7 +16,6 @@
 
   security.sudo.wheelNeedsPassword = false;
 
-  age.secrets."odin/nullmailer/remotes".file = inputs.secrets."odin/nullmailer/remotes";
   # Services configuration
   services = {
     openssh = {
@@ -131,8 +131,6 @@
     nvme-cli
   ];
 
-  age.secrets."odin/thomas".file = inputs.secrets."odin/thomas";
-
   # User configuration
   users.mutableUsers = false;
   users.users.thomas = {