feat(hosts/server): adding the secrets to the configuration

This commit is contained in:
Raphael 2025-10-16 16:30:34 +02:00
parent 7e594e5869
commit c1b3df9e32
No known key found for this signature in database
3 changed files with 26 additions and 0 deletions

20
hosts/server/secrets.nix Normal file
View file

@ -0,0 +1,20 @@
{ config, pkgs, inputs, ... }:
{
imports = [ inputs.agenix.nixosModules.default ];
age.identityPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
age.secrets."mailjet-user" = {
file = ../../secrets/mailjet-user.age;
owner = "root";
group = "root";
mode = "0400";
};
age.secrets."mailjet-pass" = {
file = ../../secrets/mailjet-pass.age;
owner = "root";
group = "root";
mode = "0400";
};
}