summary refs log tree commit diff stats
path: root/sys
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-11-17 22:26:38 +0100
committersils <sils@sils.li>2023-11-17 22:26:38 +0100
commita7acac59afe0c514df4201e9b0ddc2b76af16478 (patch)
tree9284abc914703bf51d494cd36844da7b4001b90e /sys
parentfeat(treewide): add git-crypt (diff)
downloadnix-config-a7acac59afe0c514df4201e9b0ddc2b76af16478.tar.gz
nix-config-a7acac59afe0c514df4201e9b0ddc2b76af16478.zip
feat(treewide): declare networks host-independent
Diffstat (limited to 'sys')
-rw-r--r--sys/default.nix1
-rw-r--r--sys/networking/default.nix10
-rw-r--r--sys/networking/networks.nixbin0 -> 103 bytes
3 files changed, 11 insertions, 0 deletions
diff --git a/sys/default.nix b/sys/default.nix
index 5bcab20..a60a9bb 100644
--- a/sys/default.nix
+++ b/sys/default.nix
@@ -6,6 +6,7 @@
     ./font
     ./impermanence
     ./keyboard
+    ./networking
     ./nix
     ./packages
     ./services
diff --git a/sys/networking/default.nix b/sys/networking/default.nix
new file mode 100644
index 0000000..c630249
--- /dev/null
+++ b/sys/networking/default.nix
@@ -0,0 +1,10 @@
+{...}: {
+  networking = {
+    useDHCP = true;
+    #nameservers = ["2620:fe::fe" "2620:fe::9" "9.9.9.9" "149.112.112.112"];
+    wireless = {
+      enable = true;
+      networks = import ./networks.nix;
+    };
+  };
+}
diff --git a/sys/networking/networks.nix b/sys/networking/networks.nix
new file mode 100644
index 0000000..22fed37
--- /dev/null
+++ b/sys/networking/networks.nix
Binary files differ