feat: adds module for sops-nix

This commit is contained in:
Ahwx 2025-07-28 01:00:47 +02:00
parent 197ac138e3
commit 36e14eb6a6

22
modules/core/sops.nix Normal file
View file

@ -0,0 +1,22 @@
{
pkgs,
inputs,
username,
...
}:
{
imports = [ inputs.sops-nix.nixosModules.sops ];
sops = {
defaultSopsFile = ../../secrets/secrets.yaml;
defaultSopsFormat = "yaml";
age.keyFile = "/home/${username}/.config/sops/age/keys.txt";
secrets = {
"systemMailerPassword" = { };
};
};
environment.systemPackages = with pkgs; [
sops
];
}