about summary refs log tree commit diff stats
path: root/hosts
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-02-25 08:26:00 +0100
committerene <ene@sils.li>2023-02-25 08:33:35 +0100
commit777e321b15afa3cfd8331c2776949488e5529c60 (patch)
tree89c41b2c2bcd4b108393da607095a13bc6eb6dcf /hosts
parentFeat(system): Remove default packages (diff)
downloadnixos-config-777e321b15afa3cfd8331c2776949488e5529c60.tar.gz
nixos-config-777e321b15afa3cfd8331c2776949488e5529c60.zip
Fix(hosts): Add networkmanager for mammun
Diffstat (limited to 'hosts')
-rw-r--r--hosts/mammun/configuration.nix2
-rw-r--r--hosts/mammun/networking.nix18
2 files changed, 11 insertions, 9 deletions
diff --git a/hosts/mammun/configuration.nix b/hosts/mammun/configuration.nix
index 96612a63..294fc815 100644
--- a/hosts/mammun/configuration.nix
+++ b/hosts/mammun/configuration.nix
@@ -4,6 +4,7 @@
   lib,
   nixpkgs,
   home-manager,
+  pkgs,
   ...
 }: {
   imports = [
@@ -14,7 +15,6 @@
 
     ../../services
   ];
-
   soispha = {
     users = {
       hashedPassword = "$y$jDT$O/42/7REOL50onRYcTV9R1$Ot3bPAh2raHmPN3yScP4wsJRtNqrMtTBzOq9oRJeRA0";
diff --git a/hosts/mammun/networking.nix b/hosts/mammun/networking.nix
index 05c7d100..1ebd0a7c 100644
--- a/hosts/mammun/networking.nix
+++ b/hosts/mammun/networking.nix
@@ -3,12 +3,14 @@
   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 = "mammun";
+  networking = {
+    networkmanager = {
+      enable = true;
+      dns = "systemd-resolved";
+      wifi = {
+        powersave = true;
+      };
+    };
+    hostName = "mammun";
+  };
 }