From 2f457a42ce24f5180aaf9fb8c9f60051c4bd62ba Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Tue, 14 Jun 2022 17:34:19 +1000 Subject: [PATCH] add box-wg secret --- hosts/box/default.nix | 14 +++++++------- secrets/box-wg.age | 8 ++++++++ secrets/secrets.nix | 2 +- 3 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 secrets/box-wg.age diff --git a/hosts/box/default.nix b/hosts/box/default.nix index b8e8792d..c4c6f2ee 100644 --- a/hosts/box/default.nix +++ b/hosts/box/default.nix @@ -33,11 +33,11 @@ # syncthing }; - #age.secrets.box-wg.file = "${self}/secrets/curve-wg.age"; - #age.secrets.box-wg.owner = "anish"; - #mossnet.wg = { - # enable = true; - # ips = [ "10.0.69.4/24" ]; - # privateKeyFile = "/run/agenix/box-wg"; - #}; + age.secrets.box-wg.file = "${self}/secrets/box-wg.age"; + age.secrets.box-wg.owner = "anish"; + mossnet.wg = { + enable = true; + ips = [ "10.0.69.4/24" ]; + privateKeyFile = "/run/agenix/box-wg"; + }; } diff --git a/secrets/box-wg.age b/secrets/box-wg.age new file mode 100644 index 00000000..51508c37 --- /dev/null +++ b/secrets/box-wg.age @@ -0,0 +1,8 @@ +age-encryption.org/v1 +-> ssh-ed25519 K2vF/Q Vbe7tvR9OtiY6YCfCAwkV9L/wlKd4h+stYnZu3aCSC4 +U5V2qDLFNrY4SQn9aZZyNtsfXpae8eqo6JH66gbKwdg +-> %!/-grease ErIq e d{ZU +vKMMQJKGGb1YCU3Jn6xq5JTLoGYgC+X58WVxjpHYF126aDBN0NOYxYqDJFRQGe5S +7wuRgDPn +--- QE25f0fQlnz4v6ei4OczAW9BpqOvnkwdc7re508d4A4 +z@ÒÆfóE/_`)ÞYVh²þûc¥~‰Žü½ïw¨ÎËÙ'ØF1i½êEÞ–ëU(3xt¼®PáZ¦ˆž;Í 3g‡[a6a0aU0 \ No newline at end of file diff --git a/secrets/secrets.nix b/secrets/secrets.nix index 9ac323cf..1685d2d0 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -11,7 +11,7 @@ in "fastmail.age".publicKeys = allKeys; "mossnet.age".publicKeys = allKeys; "curve-wg.age".publicKeys = curve; - # "box-wg.age".publicKeys = [ mossnet ]; + "box-wg.age".publicKeys = [ mossnet ]; # "wallabag.age".publicKeys = [ mossnet ]; "borg-password.age".publicKeys = systemOnly; }