aboutsummaryrefslogtreecommitdiff
path: root/snowfall/systems/x86_64-linux/copenhagen/network.nix
diff options
context:
space:
mode:
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";
+ };
+}