secrets: move into 'modules'
This commit is contained in:
parent
c32be8ac02
commit
0b580b61e7
30 changed files with 1 additions and 2 deletions
BIN
modules/secrets/wireguard/aramis/private-key.age
Normal file
BIN
modules/secrets/wireguard/aramis/private-key.age
Normal file
Binary file not shown.
30
modules/secrets/wireguard/default.nix
Normal file
30
modules/secrets/wireguard/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ lib, ... }:
|
||||
let
|
||||
peerSpec = {
|
||||
# "Server"
|
||||
porthos = {
|
||||
clientNum = 1;
|
||||
externalIp = "91.121.177.163";
|
||||
};
|
||||
|
||||
# "Clients"
|
||||
aramis = {
|
||||
clientNum = 2;
|
||||
};
|
||||
|
||||
richelieu = {
|
||||
clientNum = 3;
|
||||
};
|
||||
};
|
||||
|
||||
makePeer = name: attrs: with lib; {
|
||||
inherit (attrs) clientNum;
|
||||
publicKey = fileContents (./. + "/${name}/public.key");
|
||||
privateKey = fileContents (./. + "/${name}/secret.key");
|
||||
} // optionalAttrs (attrs ? externalIp) {
|
||||
inherit (attrs) externalIp;
|
||||
};
|
||||
in
|
||||
{
|
||||
peers = builtins.mapAttrs makePeer peerSpec;
|
||||
}
|
||||
10
modules/secrets/wireguard/porthos/private-key.age
Normal file
10
modules/secrets/wireguard/porthos/private-key.age
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
age-encryption.org/v1
|
||||
-> ssh-ed25519 cKojmg +WwRpd2MzycutQFXyLsr2+GzSgF67Z6UuvyqYZaLd3w
|
||||
sppt8HzaZP3yxnvnhzjl18Trnz8g3VyXJ6CaVBWd7jA
|
||||
-> ssh-ed25519 jPowng wanoqGB7T8bim/WZ4IAYViFQoGzaIZSgeoTr3YKpeTY
|
||||
ihDAdGa1XVW/qQz40V1v7a7iK7tu0EHMa7ayIogpcRw
|
||||
-> l-grease |PIcZ NIr >0;*
|
||||
4o8o0bevQZ6uDSx1WxxlDCURbFCM+yK1XPdrb9aztCSvG2a+ne78E42l5rBcoH7I
|
||||
m51A8uWS4nSj36N/76v6K4kelxKzWUg
|
||||
--- O6cGbTAVbDcdmPHf7UzfZiyiRtu1yfL4sBI+CkJA1qw
|
||||
ýqýŐ$ň`żw'čS“X¸]Ąá÷ř®úî…?¤6‹Đ/ĆN(Bžň N«a”.˙ HŽ7żí•I<E280A2>ú÷Ŕoz‡/4:sK",7J
|
||||
10
modules/secrets/wireguard/richelieu/private-key.age
Normal file
10
modules/secrets/wireguard/richelieu/private-key.age
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
age-encryption.org/v1
|
||||
-> ssh-ed25519 cKojmg rYhrpoTaFjLBGtbCXxEK7jZa+KnriEV/kWViIEjmuQs
|
||||
jHMSjxKIIqjUnpAcEo3JgsieI1iiA5/gKEx8+QFhDgY
|
||||
-> ssh-ed25519 jPowng 6sQQFvSbWdjgDYSKmJ/CBG+BTzxFghX4SaJ4GyACKWc
|
||||
OABJuh+Ta8q+G0onF/9bz3xxv4zTlHYlF4AjC5P6Y6I
|
||||
-> xwW|#D`-grease $xYH C m8lBk9
|
||||
OBqgvLNIurE0qNaSB7dO2/6dQkVXeLgf/3l9gGlRJ6ynhqwmbXOUa0vyj+OBz27O
|
||||
uI97+0y1TFAs3HN0Y8nj8LrwsafbDENu99JuVow2OuLKeSqc7sxOQQ
|
||||
--- 9filSHStPTJJGDLY7AWzIXu/6tK4X0okT522sc4OJTc
|
||||
M{イ顗仭$ケ:Nル災[ンカャ2xy8&腴_{RワLX<4C>W√<E2889A>サxム*Pr`セUイp<EFBDB2>Jノ枇鵲#藝ヤ<E8979D>ラ<EFBFBD>覬粘 s
|
||||
Loading…
Add table
Add a link
Reference in a new issue