34 lines
977 B
Nix
34 lines
977 B
Nix
{ ... }:
|
|
{
|
|
config.dendritic.features = {
|
|
secrets-home-sops.homeModules = [
|
|
({ inputs, config, ... }: {
|
|
imports = [
|
|
inputs.sops-nix.homeModules.sops
|
|
];
|
|
|
|
sops.defaultSopsFile = ../../secrets/users/${config.dendritic.current.primaryUser}.yaml;
|
|
sops.defaultSopsFormat = "yaml";
|
|
sops.age.keyFile = "${config.home.homeDirectory}/.config/sops/age/keys.txt";
|
|
|
|
sops.secrets."user/test" = {
|
|
path = ".config/secrets/test";
|
|
};
|
|
})
|
|
];
|
|
|
|
secrets-system-sops.nixosModules = [
|
|
({ inputs, config, ... }: {
|
|
imports = [
|
|
inputs.sops-nix.nixosModules.sops
|
|
];
|
|
|
|
sops.defaultSopsFile = ../../secrets/hosts/${config.dendritic.current.hostName}.yaml;
|
|
sops.defaultSopsFormat = "yaml";
|
|
sops.age.keyFile = "/home/${config.dendritic.current.primaryUser}/.config/sops/age/keys.txt";
|
|
|
|
sops.secrets."system/example" = { };
|
|
})
|
|
];
|
|
};
|
|
}
|