diff options
| author | Grisha Shipunov | 2025-01-19 20:46:38 +0100 |
|---|---|---|
| committer | Grisha Shipunov | 2025-01-19 20:46:38 +0100 |
| commit | 76e043171c9a6cd7957ddee5d792740ada93b8ce (patch) | |
| tree | 1778aef213188df0c5554f754bbc3fadcf0b36d4 /hosts/cloud/default.nix | |
| parent | 42128ebbe19d0aa3841245a423aeb6636c9b23d3 (diff) | |
reorganize secrets
Diffstat (limited to 'hosts/cloud/default.nix')
| -rw-r--r-- | hosts/cloud/default.nix | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/hosts/cloud/default.nix b/hosts/cloud/default.nix index c848297..0c2dbca 100644 --- a/hosts/cloud/default.nix +++ b/hosts/cloud/default.nix @@ -1,10 +1,21 @@ -{ ... }: +{ config, ... }: { imports = [ ./configuration.nix ./hardware-configuration.nix ./networking.nix ./proxy - ./secrets.nix ]; + + sops.defaultSopsFile = ./secrets.yaml; + sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; + + sops.secrets = { + "wg/0xa-mgmt" = { + owner = config.users.users.systemd-network.name; + }; + "wg/0xa-proxy" = { + owner = config.users.users.systemd-network.name; + }; + }; } |
