From 3c067e5852b59afaf4842d5af76ddf9ce6a26037 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Czy=C5=BC?= Date: Thu, 25 Apr 2024 11:45:48 +0200 Subject: [PATCH] networking --- home-manager/home.nix | 1 + hosts/thor/configuration.nix | 1 + hosts/thor/networking.nix | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 hosts/thor/networking.nix diff --git a/home-manager/home.nix b/home-manager/home.nix index e60e182..40ed58d 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -147,6 +147,7 @@ gnome.seahorse lmstudio unstable.arduino-ide + iwgtk ]; services.gnome-keyring = { diff --git a/hosts/thor/configuration.nix b/hosts/thor/configuration.nix index 42aea96..2e6d7cd 100644 --- a/hosts/thor/configuration.nix +++ b/hosts/thor/configuration.nix @@ -23,6 +23,7 @@ ../common ./gui.nix ./bluetooth.nix + ./networking.nix # Import your generated (nixos-generate-config) hardware configuration ./hardware-configuration.nix diff --git a/hosts/thor/networking.nix b/hosts/thor/networking.nix new file mode 100644 index 0000000..e27d73a --- /dev/null +++ b/hosts/thor/networking.nix @@ -0,0 +1,32 @@ +{ + inputs, + outputs, + lib, + config, + pkgs, + ... +}: { + networking.networkmanager.wifi.backend = "iwd"; + + networking.wireless.iwd = { + enable = true; + settings = { + General = { + EnableNetworkConfiguration = true; + UseDefaultInterface = true; + }; + Settings = { + AutoConnect = true; + }; + }; + }; + + # system.activationScripts = { + # rfkillUnblockWlan = { + # text = '' + # rfkill unblock wlan + # ''; + # deps = []; + # }; + # }; +}