aboutsummaryrefslogtreecommitdiff
path: root/snowfall/systems/x86_64-linux/copenhagen/network.nix
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2025-02-08 23:19:40 -0800
committerCaroline Larimore <caroline@larimo.re>2025-04-14 18:58:53 -0700
commit596308634840634c216e8f1f1db8920886df0aa4 (patch)
tree7e55f6c8e8e6864067f293dce6c4ac4d5a3dd393 /snowfall/systems/x86_64-linux/copenhagen/network.nix
parent1cfb12afdddce77ab2a8c430b53faf9d8d31d920 (diff)
migration: start copenhagen config
Diffstat (limited to 'snowfall/systems/x86_64-linux/copenhagen/network.nix')
-rw-r--r--snowfall/systems/x86_64-linux/copenhagen/network.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/snowfall/systems/x86_64-linux/copenhagen/network.nix b/snowfall/systems/x86_64-linux/copenhagen/network.nix
new file mode 100644
index 0000000..affe697
--- /dev/null
+++ b/snowfall/systems/x86_64-linux/copenhagen/network.nix
@@ -0,0 +1,20 @@
+{ ... }:
+
+{
+ networking = {
+ useDHCP = true;
+
+ wireless = {
+ enable = true;
+
+ # Import /etc/wpa_supplicant.conf networks
+ allowAuxiliaryImperativeNetworks = true;
+ };
+
+ firewall.enable = true;
+ };
+
+ environment.etc."wpa_supplicant.conf" = {
+ source = "/secrets/wireless.conf";
+ };
+}