Split wifi configuration

This commit is contained in:
Marko Korhonen 2024-09-15 23:15:06 +03:00
parent 4beb23e191
commit b3416f1f58
4 changed files with 18 additions and 12 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { pkgs, ... }:
{ {
imports = [ imports = [
@ -52,6 +52,8 @@
}; };
}; };
networking.networkmanager.enable = true;
hardware.pulseaudio.enable = false; hardware.pulseaudio.enable = false;
security.rtkit.enable = true; security.rtkit.enable = true;

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { pkgs, ... }:
{ {
programs = { programs = {

View file

@ -1,16 +1,12 @@
{ config, pkgs, ... }: { ... }:
{ {
imports = [ ./hardware-configuration.nix ]; imports = [
./hardware-configuration.nix
../../wifi.nix
];
networking = { networking.hostName = "Mirkwood";
hostName = "Mirkwood";
networkmanager = {
enable = true;
wifi.backend = "iwd";
};
wireless.iwd.enable = true;
};
boot.initrd.luks.devices."luks-cf2ca44e-d8d1-4ec8-a072-921f29ed693d".device = "/dev/disk/by-uuid/cf2ca44e-d8d1-4ec8-a072-921f29ed693d"; boot.initrd.luks.devices."luks-cf2ca44e-d8d1-4ec8-a072-921f29ed693d".device = "/dev/disk/by-uuid/cf2ca44e-d8d1-4ec8-a072-921f29ed693d";
} }

8
wifi.nix Normal file
View file

@ -0,0 +1,8 @@
{...}:
{
networking = {
networkmanager.wifi.backend = "iwd";
wireless.iwd.enable = true;
};
}