summary refs log tree commit diff stats
path: root/system/secrets
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-07-24 13:42:13 +0200
committerSoispha <soispha@vhack.eu>2023-08-11 01:11:23 +0200
commite1f0250d5c333f583faaf41fb8bc25931c897e38 (patch)
treebbaf448a972d05009f6c56e6d4f50eb24c5a32a5 /system/secrets
parentMerge: Branch 'snapper' (diff)
downloadnixos-server-e1f0250d5c333f583faaf41fb8bc25931c897e38.tar.gz
nixos-server-e1f0250d5c333f583faaf41fb8bc25931c897e38.zip
Refactor(system/secrets/secrets.nix): Remove redundant secretlist
Diffstat (limited to '')
-rw-r--r--system/secrets/secrets.nix12
1 files changed, 5 insertions, 7 deletions
diff --git a/system/secrets/secrets.nix b/system/secrets/secrets.nix
index 2fd4132..11c0655 100644
--- a/system/secrets/secrets.nix
+++ b/system/secrets/secrets.nix
@@ -3,15 +3,13 @@ let
   sils = "age1vuhaey7kd9l76y6f9weeqmde3s4kjw38869ju6u3027yece2r3rqssjxst";
 
   server1 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMnqsfIZjelH7rcvFvnLR5zUZuC8thsBupBlvjcMRBUm";
-in {
-  "keycloak/passwd.tix".publicKeys = [
-    soispha
-    sils
-    server1
-  ];
-  "matrix-synapse/passwd.tix".publicKeys = [
+
+  allSecrets = [
     soispha
     sils
     server1
   ];
+in {
+  "keycloak/passwd.tix".publicKeys = allSecrets;
+  "matrix-synapse/passwd.tix".publicKeys = allSecrets;
 }