From 590443b0f9fcbad37ca783cd6bdfd9cea4ce7050 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Wed, 16 Feb 2022 12:00:52 +0100 Subject: [PATCH] :rocket: seperate files for email secrets --- flake.nix | 17 ++++++++++++++++- modules/services/agenix.nix | 4 ---- secrets/{email.age => email-desktop.age} | 0 secrets/email-laptop.age | 12 ++++++++++++ secrets/secrets.nix | 3 ++- 5 files changed, 30 insertions(+), 6 deletions(-) rename secrets/{email.age => email-desktop.age} (100%) create mode 100644 secrets/email-laptop.age diff --git a/flake.nix b/flake.nix index e522311..ea1ad18 100644 --- a/flake.nix +++ b/flake.nix @@ -67,8 +67,23 @@ agenix.nixosModules.age ]; - hosts.nixos-laptop.modules = [ ./hosts/nixos-laptop ]; + hosts.nixos-laptop.modules = [ + ./hosts/nixos-laptop + { + age.secrets.email = { + file = ./secrets/email-laptop.age; + owner = "1000"; + }; + } + ]; + hosts.nixos-desktop.modules = [ + { + age.secrets.email = { + file = ./secrets/email-desktop.age; + owner = "1000"; + }; + } ./hosts/nixos-desktop self.nixosModules.containers self.nixosModules.gaming diff --git a/modules/services/agenix.nix b/modules/services/agenix.nix index 303d565..93bdb5b 100644 --- a/modules/services/agenix.nix +++ b/modules/services/agenix.nix @@ -18,9 +18,5 @@ file = ../../secrets/spotifyd.age; owner = "1000"; }; - email = { - file = ../../secrets/email.age; - owner = "1000"; - }; }; } diff --git a/secrets/email.age b/secrets/email-desktop.age similarity index 100% rename from secrets/email.age rename to secrets/email-desktop.age diff --git a/secrets/email-laptop.age b/secrets/email-laptop.age new file mode 100644 index 0000000..a83a3d9 --- /dev/null +++ b/secrets/email-laptop.age @@ -0,0 +1,12 @@ +age-encryption.org/v1 +-> ssh-ed25519 ZYd7Zg N4QvwuPBchksz2oSnK2kiAbSQvfjFhk1Um6APEfjyiI +4/NvYN9lXyMSVh+PWmkpULJzaqrUg/fQgihP5kbLwqg +-> ssh-ed25519 wG6LYg Il7W+WqYVNcf0hvj+ROIo2WV/8AXZzgPrhhX74wT+0Q +zaCQoU1H5ViK02fFc/yWqqVl/M4WLB8Ct+Ro8ZW4v5s +-> ssh-ed25519 CjuqfA M930Ze6RqjmpJ20pgUOaFGKNje2gLxiC/VVGslRJrTY +JcWQ3DW3M6jUtyCg1AKaSTdXRo4I966oohMZnlruo0I +-> 1[-grease TNs +Dn2AxvyxLFE9Y9eGysrMiWT27ypcNNwvPsTWfk4usKPFZ7UMcagI36CIjQGtSJvL +cJnCZ1l+/kE2vkGpsz3VPeQ9oDVZjhSKWsYtBMLTZKhB9aHhov5ZaWUzQKaE+pog +--- MZBF7zyAKBcrvTooxf8LTJXXEpCLdqaUZ2H9E6a7z+I +#a{nL;7vQJѝjrjQ)t \ No newline at end of file diff --git a/secrets/secrets.nix b/secrets/secrets.nix index 986e113..3251a54 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -14,5 +14,6 @@ in { "smbMoritz.age".publicKeys = users ++ hosts; "smbMedia.age".publicKeys = users ++ hosts; "spotifyd.age".publicKeys = users ++ hosts; - "email.age".publicKeys = users ++ hosts; + "email-desktop.age".publicKeys = users ++ hosts; + "email-laptop.age".publicKeys = users ++ hosts; }