diff options
| author | Caroline Larimore <caroline@larimo.re> | 2025-02-03 19:30:44 -0800 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2025-04-14 18:58:17 -0700 |
| commit | 5a0a36726756bc2a88770f8fd65418b6d3ce007b (patch) | |
| tree | c6eac6d1e52f6171d5dcb6b06b706329e3239618 /snowfall/systems/x86_64-linux/c-pc/network.nix | |
| parent | ffc499cddd42ff4bea818718ae0b2f12d0e5dfbb (diff) | |
migration: barebones c-pc config
Diffstat (limited to 'snowfall/systems/x86_64-linux/c-pc/network.nix')
| -rw-r--r-- | snowfall/systems/x86_64-linux/c-pc/network.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/snowfall/systems/x86_64-linux/c-pc/network.nix b/snowfall/systems/x86_64-linux/c-pc/network.nix new file mode 100644 index 0000000..aa7e075 --- /dev/null +++ b/snowfall/systems/x86_64-linux/c-pc/network.nix @@ -0,0 +1,25 @@ +{ ... }: + +{ + networking = { + useDHCP = true; + + wireless = { + enable = true; + + # Import /etc/wpa_supplicant.conf networks + allowAuxiliaryImperativeNetworks = true; + }; + + firewall = { + enable = false; + + allowedTCPPorts = [ 8096 50000 ]; + allowedUDPPorts = [ ]; + }; + }; + + environment.etc."wpa_supplicant.conf" = { + source = "/secrets/wireless.conf"; + }; +} |