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/toaster/default.nix | |
| parent | 42128ebbe19d0aa3841245a423aeb6636c9b23d3 (diff) | |
reorganize secrets
Diffstat (limited to 'hosts/toaster/default.nix')
| -rw-r--r-- | hosts/toaster/default.nix | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/hosts/toaster/default.nix b/hosts/toaster/default.nix index c3b087d..f3afe11 100644 --- a/hosts/toaster/default.nix +++ b/hosts/toaster/default.nix @@ -1,15 +1,32 @@ -{ pkgs, ... }: +{ pkgs, config, ... }: { imports = [ ./amd.nix ./hardware-configuration.nix # ./irc.nix ./network - ./secrets.nix ./secure-boot.nix ./zfs.nix ]; + sops.defaultSopsFile = ./secrets.yaml; + sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; + + sops.secrets = { + "wg/zw" = { + owner = config.users.users.systemd-network.name; + }; + "wg/dvb" = { + owner = config.users.users.systemd-network.name; + }; + "wg/mullvad" = { + owner = config.users.users.systemd-network.name; + }; + "wg/0xa-mgmt" = { + owner = config.users.users.systemd-network.name; + }; + }; + nixpkgs.config.allowUnfree = true; # Use the systemd-boot EFI boot loader. |
