flake/nixos/sops.nix

19 lines
408 B
Nix
Raw Normal View History

2024-12-02 20:50:24 -05:00
{ user, ... }:
{
sops = {
2024-12-02 22:13:35 -05:00
defaultSopsFile = ../.sops-secrets.yaml;
2024-12-02 20:50:24 -05:00
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
secrets = {
"zipline" = {
owner = user;
path = "/home/${user}/.secrets/zipline";
};
2024-12-02 22:13:35 -05:00
"users/cswimr/password" = {
neededForUsers = true;
owner = user;
path = "/home/${user}/.secrets/password";
};
2024-12-02 20:50:24 -05:00
};
};
}