Files
nixos/home/common/core/sops.nix
T
2026-06-30 04:26:40 +03:00

19 lines
408 B
Nix

{ config, dotfiles, sops-nix, ... }:
{
imports = [
sops-nix.homeManagerModules.sops
];
sops = {
defaultSopsFile = "${dotfiles}/dot_config/sops/secrets.yaml";
age.keyFile = "${config.xdg.configHome}/sops/age/keys.txt";
};
home.file.".sops.yaml".source = "${dotfiles}/dot_sops.yaml";
xdg.configFile."sops" = {
source = "${dotfiles}/dot_config/sops";
recursive = true;
};
}