mirror of
https://github.com/smg1024/nix-darwin.git
synced 2026-05-22 20:32:59 +09:00
feat: export sops age key file
This commit is contained in:
parent
725e9f6d87
commit
d54f1b591a
3 changed files with 22 additions and 9 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue