21 lines
369 B
Nix
21 lines
369 B
Nix
{ inputs, config, ... }:
|
|
|
|
{
|
|
imports = [
|
|
inputs.sops-nix.homeManagerModules.sops
|
|
];
|
|
|
|
sops = {
|
|
defaultSopsFile = ../../secrets/secrets.yaml;
|
|
defaultSopsFormat = "yaml";
|
|
|
|
age = {
|
|
keyFile = "${config.home.homeDirectory}/.config/sops/age/keys.txt";
|
|
};
|
|
};
|
|
|
|
home.sessionVariables = {
|
|
SOPS_AGE_KEY_FILE = config.sops.age.keyFile;
|
|
};
|
|
}
|