Files
nix-config/modules/home/sops/default.nix
mjallen18 642cee5dc5 home
2026-03-25 16:02:34 -05:00

29 lines
556 B
Nix

{
config,
lib,
namespace,
...
}:
let
cfg = config.${namespace}.sops;
in
{
imports = [ ./options.nix ];
config = lib.mkIf cfg.enable {
sops = {
age.keyFile = "/home/${config.home.username}/.config/sops/age/keys.txt";
defaultSopsFile = "/etc/nixos/secrets/secrets.yaml";
validateSopsFiles = false;
# secrets = {
# "github-token" = { };
# };
# templates = {
# ".env".content = ''
# GITHUB_TOKEN = "${config.sops.placeholder.github-token}"
# '';
# };
};
};
}