From 76e043171c9a6cd7957ddee5d792740ada93b8ce Mon Sep 17 00:00:00 2001 From: Grisha Shipunov Date: Sun, 19 Jan 2025 20:46:38 +0100 Subject: reorganize secrets --- hosts/cloud/default.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'hosts/cloud/default.nix') 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; + }; + }; } -- cgit v1.3.1