| 1 | { ... }: |
| 2 | let |
| 3 | workspace = builtins.fromJSON (builtins.readFile ../config/mac-studio-sandbox.json); |
| 4 | in { |
| 5 | systemd.services.snowglobe-host = { |
| 6 | environment.SNOWGLOBE_MAC_VM = builtins.toJSON { |
| 7 | name = "m3-devbox"; |
| 8 | owner = "8c909fab-98b0-4472-9171-9606ccebe9d5"; |
| 9 | address = workspace.clientAddress; |
| 10 | port = 22; |
| 11 | user = "clo"; |
| 12 | identity = "/var/lib/snowglobe/mac-vm/ssh_key"; |
| 13 | knownHosts = "/var/lib/snowglobe/mac-vm/known_hosts"; |
| 14 | }; |
| 15 | serviceConfig.IPAddressAllow = [ "${workspace.clientAddress}/32" ]; |
| 16 | }; |
| 17 | } |