feat: export sops age key file

This commit is contained in:
Poby 2026-05-13 22:27:15 +09:00
parent 725e9f6d87
commit d54f1b591a
No known key found for this signature in database
3 changed files with 22 additions and 9 deletions

View file

@ -1,6 +1,12 @@
{config, ...}: {
{config, ...}: let
ageKeyFile = "${config.home.homeDirectory}/.config/sops/age/keys.txt";
in {
home.sessionVariables = {
SOPS_AGE_KEY_FILE = ageKeyFile;
};
sops = {
age.keyFile = "${config.home.homeDirectory}/.config/sops/age/keys.txt";
age.keyFile = ageKeyFile;
defaultSopsFile = config.repo.user.secretFile;