From 2f5636c127526a0817f3371bcfd2563c6770b148 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 19 Jan 2025 00:42:50 +0000 Subject: [PATCH] Simplify agenix configuration --- nix/secrets.nix | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/nix/secrets.nix b/nix/secrets.nix index e89b018..800d970 100644 --- a/nix/secrets.nix +++ b/nix/secrets.nix @@ -8,8 +8,6 @@ let users = { opdavies = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDkkbYaCD9NUIQT0NnsmlyfepwjxBYeiJSBCotOpdPTyc5inFAd29DiVw98j4skfaHdzjcqWmMFmDQWM6tGkK7eg8n0WuaABmsjdEbzTtfjHwM0tRDCIh5AtoT4IvoLhwLjEI2jKM05BGCQ2m5lS//AYJK1DjiV4UH+IjXHz6oy/3eFzQwANjxWS+mbR565p21yuAu1DKEyaGeVzT1xDhgzlnZG7Cys/rFgUYpIvYDHMOFxG6hsDB8vqyHiTXniniti5tdvGGYHgRGQcynRTU12aerrqHTIOefrElXJdf3/PA8FIY/Pd3MmZocY/vvQe0EVHXWrNtnHOF3MFQ1tFyfubKO51Dcp9KmzHnyBvO4CtvGVr/upSVWfo0I/EqkIqvCvBbdSIPeH9V5hAcyWENGF4Wf0/Yqtc0dBhfXJmPVBsC2ghZp9oERK+h5Xs7DpzkT0vtkN+wjgA5weIuG8e2UVNO29LWASzlychVqb7BVa6kNn5CyGwauyIGsYvAFnUjkyJpK8qleNM3VO5x9aw26IhSKlnSE9PAdX8p7PpdoWfxWRekKTc4h6iAe7pFOENvuokAvCNsE5LolR4VrYKXjA0m3nupDNWYexAWfR3lSeSlKd9nD3OENS0biJKayZHs11iDUTxm5u5gm/U60b4z0zDXjh1H/DI/pSCG6jjaXDpw=="; - opdavies2 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHcR57U61CmPbV/QlaqeBZh3SNmWPGC7rhJpt1Ds3d3N"; - opdavies-hetznix = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPaS9xb3nXL2+gSQv5q6Y9pGhRQOoZzUKZJAu0hAYfqj"; }; in { @@ -17,20 +15,14 @@ in hosts.hetznix hosts.t490 users.opdavies - users.opdavies2 - users.opdavies-hetznix - ]; + ] ++ users; "secrets/cloudflare-opdavies-uk.age".publicKeys = [ hosts.nixedo - users.opdavies - users.opdavies2 - ]; + ] ++ users; "secrets/tubearchivist.age".publicKeys = [ hosts.lemp11 hosts.nixedo - users.opdavies - users.opdavies2 - ]; + ] ++ users; }