From 2dc698c8ab866517bdc8e63cf811d86f8642b979 Mon Sep 17 00:00:00 2001 From: genofire Date: Fri, 13 Jan 2023 21:51:31 +0100 Subject: [PATCH] fix(nixos): networkd vs. NetworkManager during nixos-rebuild --- nixos/desktop-gnome.nix | 10 ++++++++++ nixos/desktop.nix | 1 + 2 files changed, 11 insertions(+) diff --git a/nixos/desktop-gnome.nix b/nixos/desktop-gnome.nix index 6f548f8..1525275 100644 --- a/nixos/desktop-gnome.nix +++ b/nixos/desktop-gnome.nix @@ -9,6 +9,16 @@ }; networking.networkmanager.wifi.backend = "iwd"; + # systemd.network.networks.loop = { + # matchConfig.Name = "lo"; + # linkConfig.RequiredForOnline = false; + # networkConfig.KeepConfiguration = true; + # }; + systemd.network.networks.wifi = { + matchConfig.Name = "wlan0"; + linkConfig.RequiredForOnline = false; + networkConfig.KeepConfiguration = true; + }; environment.systemPackages = with pkgs; [ gnome.networkmanager-openvpn diff --git a/nixos/desktop.nix b/nixos/desktop.nix index 0f181ea..4fb3a07 100644 --- a/nixos/desktop.nix +++ b/nixos/desktop.nix @@ -31,6 +31,7 @@ environment.systemPackages = with pkgs; [ iw # pulseaudio-modules-bt + ## android-tools ]; programs.browserpass.enable = true;