diff options
author | Soispha <soispha@vhack.eu> | 2023-04-22 18:32:49 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-05-09 19:31:37 +0200 |
commit | 2280414fc44af3f21df733b89ddb367c18bda5aa (patch) | |
tree | 8654dc47622f63af18363bae6c9b45ee9d476ee4 /hosts/apzu | |
parent | Docs(todo): Update (diff) | |
download | nixos-config-2280414fc44af3f21df733b89ddb367c18bda5aa.tar.gz nixos-config-2280414fc44af3f21df733b89ddb367c18bda5aa.zip |
Fix(hosts/apzu): Activate networkmanager
Diffstat (limited to 'hosts/apzu')
-rw-r--r-- | hosts/apzu/networking.nix | 24 |
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"; + }; } |