Files
dotfiles/home-modules/sops.nix
Lennart J. Kurzweg (Nx2) e422234758 sops use key 13
2025-09-30 00:08:29 +02:00

23 lines
493 B
Nix

{ pkgs, ... }@all: with all;
{
imports = [
inputs.sops-nix.homeManagerModules.sops
];
sops = {
age.keyFile = "${hyper.home}.age_nx2_key_13.txt";
defaultSopsFile = ../sops-secrets.yaml;
# %r is $XDG_RUNTIME_DIR
secrets = {
"example" = {
path = "%r/secrets/example";
};
# "sops-age-private-key" = { # Bootstrapping doens't work
# mode = "0400";
# path = "/home/${user}/.config/sops/age/keys.txt";
# };
};
};
}