nixos-config/docs/content/en-US/03-project-specific-setup/03-secrets-management/assets/get-secrets.nix

14 lines
297 B
Nix
Raw Normal View History

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