mirror of
https://github.com/eRgo35/nix-config.git
synced 2026-02-04 06:56:12 +01:00
networking
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
../common
|
||||
./gui.nix
|
||||
./bluetooth.nix
|
||||
./networking.nix
|
||||
|
||||
# Import your generated (nixos-generate-config) hardware configuration
|
||||
./hardware-configuration.nix
|
||||
|
||||
32
hosts/thor/networking.nix
Normal file
32
hosts/thor/networking.nix
Normal file
@@ -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 = [];
|
||||
# };
|
||||
# };
|
||||
}
|
||||
Reference in New Issue
Block a user