Skyler Grey | 3b29847 | 2022-10-31 00:28:02 +0000 | [diff] [blame] | 1 | { config, ... }: { |
| 2 | config = { |
| 3 | services.openvpn.servers = { |
| 4 | clicks = { |
| 5 | config = ''config ${config.sops.secrets."clicks-vpn/client.ovpn".path}''; |
| 6 | autoStart = false; |
| 7 | }; |
| 8 | }; |
| 9 | |
| 10 | sops.secrets = { |
| 11 | "clicks-vpn/auth.conf" = { |
| 12 | mode = "0400"; |
| 13 | owner = config.users.users.root.name; |
| 14 | group = config.users.users.nobody.group; |
| 15 | sopsFile = ../secrets/clicks-vpn/auth.conf; |
| 16 | format = "binary"; |
| 17 | }; |
| 18 | "clicks-vpn/client.ovpn" = { |
| 19 | mode = "0400"; |
| 20 | owner = config.users.users.root.name; |
| 21 | group = config.users.users.nobody.group; |
| 22 | sopsFile = ../secrets/clicks-vpn/client.ovpn; |
| 23 | format = "binary"; |
| 24 | }; |
| 25 | }; |
| 26 | }; |
| 27 | } |