🚀 seperate files for email secrets

This commit is contained in:
Moritz Böhme 2022-02-16 12:00:52 +01:00
parent 5aa2803627
commit 590443b0f9
No known key found for this signature in database
GPG key ID: 213820E2795F5CF5
5 changed files with 30 additions and 6 deletions

View file

@ -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

View file

@ -18,9 +18,5 @@
file = ../../secrets/spotifyd.age;
owner = "1000";
};
email = {
file = ../../secrets/email.age;
owner = "1000";
};
};
}

12
secrets/email-laptop.age Normal file
View file

@ -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{¨nßLŞ;Ůë7v˙śQJ€ŃťjrjQ)út

View file

@ -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;
}