add copernicus wg-privkey to age secrets
This commit is contained in:
parent
053ce2b76b
commit
e656c395f3
11
boxes/copernicus/agenix.nix
Normal file
11
boxes/copernicus/agenix.nix
Normal file
@ -0,0 +1,11 @@
|
||||
{ machines, ... }:
|
||||
{
|
||||
age = {
|
||||
secrets = {
|
||||
copernicus-wg-priv = {
|
||||
file = machines.copernicus.wg-privkey;
|
||||
};
|
||||
};
|
||||
identityPaths = [ "/home/usr/.ssh/id_ed25519" ];
|
||||
};
|
||||
}
|
@ -4,6 +4,7 @@
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./nvidia.nix
|
||||
./agenix.nix
|
||||
./services
|
||||
../../config/copernicus.nix
|
||||
../../lib/bootstrap.nix
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ machines, ... }:
|
||||
{ config, machines, ... }:
|
||||
|
||||
{
|
||||
networking = {
|
||||
@ -9,7 +9,7 @@
|
||||
ips = [ "10.100.0.2/24" ];
|
||||
listenPort = 50000;
|
||||
|
||||
privateKeyFile = "/home/usr/wg-keys/private";
|
||||
privateKeyFile = config.age.secrets.copernicus-wg-priv.path;
|
||||
peers = [
|
||||
{ # netbox
|
||||
publicKey = machines.netbox.wg-pubkey;
|
||||
|
@ -1,3 +1,4 @@
|
||||
{ machines, ... }:
|
||||
{
|
||||
age.secrets = {
|
||||
gitea-postgres-password = {
|
||||
@ -12,7 +13,7 @@
|
||||
};
|
||||
|
||||
netbox-wg-priv = {
|
||||
file = ../../secrets/netbox-wg-priv.age;
|
||||
file = machines.netbox.wg-privkey;
|
||||
};
|
||||
|
||||
radicale-passwd = {
|
||||
|
@ -6,6 +6,7 @@
|
||||
};
|
||||
copernicus = {
|
||||
pubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILBGh1FHPneg7PCDkhMs2BCJPTIRVJkRTKpOj1w02ydD usr";
|
||||
wg-privkey = ../secrets/copernicus-wg-priv.age;
|
||||
wg-pubkey = "JlH1X4KRT+B8Uau+qTLtBqyapkbGClIj1db7znU77kc=";
|
||||
ip-addrs = {
|
||||
localnet = "192.168.1.201";
|
||||
|
7
secrets/copernicus-wg-priv.age
Normal file
7
secrets/copernicus-wg-priv.age
Normal file
@ -0,0 +1,7 @@
|
||||
age-encryption.org/v1
|
||||
-> ssh-ed25519 NIIFZw YHF+5qXQXLGyPhIbvC0sE/6lyZp7iTRZuLbwBRtDfn8
|
||||
fOQwQb77gbEiChooxgbyIEznDypgWOH+/QZ2+nwjlNw
|
||||
-> ssh-ed25519 E0Y+lw QwZ+JNHFmF/O7e0I+B5579dMG/R5iJss2JQeW0c170I
|
||||
YznmSpxQunboeWIR4L7WyuUOPviyU7gtkxiCvH67jnE
|
||||
--- ZKBmup5lFUVa1OAIDWHiPp4ocuxpkshqbqhw7D5kOMo
|
||||
<EFBFBD>ÎýíÀfaFyº$¹žÕ$t¬³ò=8†‡]rdî‰ÔðúHþÐë˜aE &çÆ<C3A7>Á^@ lSĨ‡€Š¯k碟>šî{eôŒûöõý)•
|
@ -12,7 +12,7 @@ in {
|
||||
|
||||
# wireguard
|
||||
"netbox-wg-priv.age".publicKeys = all;
|
||||
"copernicus-wg-priv.age".publicKeys = all;
|
||||
"copernicus-wg-priv.age".publicKeys = with machines; [ copernicus.pubkey aristotle.pubkey ];
|
||||
|
||||
# radicale
|
||||
"radicale-passwd.age".publicKeys = all;
|
||||
|
Loading…
Reference in New Issue
Block a user