nixos-config/docs/website/content/en/03-project-specific-setup/03-secrets-management/assets/attach-sops-prefix.nix
Gabriel Arazas c2da083e5f
docs: restructure folder
Similar to wrapper-manager subproject, we're just preparing to make this
multi-output for our project's documentation.
2024-09-04 19:13:39 +08:00

19 lines
425 B
Nix

{ config, lib, pkgs, ... }:
{
sops.secrets =
lib.getSecrets ./sops.yaml
{
ssh-key = { };
"borg/ssh-key" = { };
} //
(lib.getSecrets ./wireguard.yaml
(lib.attachSopsPathPrefix "wireguard" {
"private-key" = {
group = config.users.users.systemd-network.group;
reloadUnits = [ "systemd-networkd.service" ];
mode = "0640";
};
}));
}