mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 22:57:55 +00:00
18 lines
413 B
Nix
18 lines
413 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";
|
||
|
};
|
||
|
}));
|
||
|
}
|