about summary refs log tree commit diff stats
path: root/hosts/apzu
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--hosts/apzu/networking.nix24
1 files changed, 11 insertions, 13 deletions
diff --git a/hosts/apzu/networking.nix b/hosts/apzu/networking.nix
index 9a780fff..79d693f9 100644
--- a/hosts/apzu/networking.nix
+++ b/hosts/apzu/networking.nix
@@ -1,14 +1,12 @@
-{
-  config,
-  lib,
-  ...
-}: {
-  # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
-  # (the default) this is the recommended approach. When using systemd-networkd it's
-  # still possible to use this option, but it's recommended to use it in conjunction
-  # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
-  networking.useDHCP = lib.mkDefault true;
-  # networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
-  # networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true;
-  networking.hostName = "apzu";
+{...}: {
+  networking = {
+    networkmanager = {
+      enable = true;
+      dns = "default";
+      wifi = {
+        powersave = true;
+      };
+    };
+    hostName = "apzu";
+  };
 }