Switch back to wpa_supplicant, lots of tweaks and simplifications

This commit is contained in:
Bun 2025-03-26 09:56:44 -04:00
parent 777ebab1c4
commit 88bf37e5b3
15 changed files with 32 additions and 55 deletions

View file

@ -12,7 +12,7 @@
networking = { networking = {
hostName = "envy"; hostName = "envy";
wireless.iwd.enable = true; wireless.enable = true;
wg-quick.interfaces.wgc.address = [ "10.100.0.25/24" ]; wg-quick.interfaces.wgc.address = [ "10.100.0.25/24" ];
}; };

View file

@ -1,4 +1,4 @@
{ config, lib, ... }: { ... }:
{ {
imports = [ imports = [
./boot ./boot
@ -11,14 +11,15 @@
networking = { networking = {
hostName = "intuos"; hostName = "intuos";
wireless.iwd.enable = true; useDHCP = false;
interfaces."wlan0".ipv4.addresses = [{ wireless.enable = true;
interfaces."wlp1s0".ipv4.addresses = [{
address = "10.2.0.102"; address = "10.2.0.102";
prefixLength = 8; prefixLength = 8;
}]; }];
defaultGateway = { defaultGateway = {
address = "10.1.0.1"; address = "10.1.0.1";
interface = "wlan0"; interface = "wlp1s0";
}; };
}; };

View file

@ -12,7 +12,7 @@
networking = { networking = {
hostName = "pear"; hostName = "pear";
wireless.iwd.enable = true; wireless.enable = true;
wg-quick.interfaces.wgc.address = [ "10.100.0.18/24" ]; wg-quick.interfaces.wgc.address = [ "10.100.0.18/24" ];
}; };

View file

@ -11,7 +11,7 @@
networking = { networking = {
hostName = "redmond"; hostName = "redmond";
wireless.iwd.enable = true; wireless.enable = true;
wg-quick.interfaces.wgc.address = [ "10.100.0.23/24" ]; wg-quick.interfaces.wgc.address = [ "10.100.0.23/24" ];
}; };

View file

@ -1,16 +1,8 @@
{ config, lib, pkgs, ... }: { config, ... }:
{ {
config = lib.mkIf config.system.desktop.enable {
services.pipewire = { services.pipewire = {
enable = true; enable = config.system.desktop.enable;
wireplumber = { wireplumber.extraConfig."wireplumber.settings"."bluetooth.autoswitch-to-headset-profile" = false;
enable = true;
configPackages = [
(pkgs.writeTextDir "share/wireplumber/wireplumber.conf.d/11-bluetooth-policy.conf" ''
wireplumber.settings = { bluetooth.autoswitch-to-headset-profile = false }
'')
];
};
alsa = { alsa = {
enable = true; enable = true;
support32Bit = true; support32Bit = true;
@ -18,5 +10,4 @@
pulse.enable = true; pulse.enable = true;
#jack.enable = true; #jack.enable = true;
}; };
};
} }

View file

@ -1,7 +1,6 @@
{ ... }: { ... }:
{ {
imports = [ imports = [
./extlinux
./grub ./grub
./lanzaboote ./lanzaboote
./plymouth ./plymouth

View file

@ -1,10 +0,0 @@
{ config, lib, ... }:
{
options.system.extlinux.enable = lib.mkEnableOption "Enable extlinux";
config.boot.loader = lib.mkIf config.system.extlinux.enable {
grub.enable = false;
systemd-boot.enable = lib.mkForce false;
generic-extlinux-compatible.enable = true;
};
}

View file

@ -1,6 +1,6 @@
{ config, lib, ... }: { config, lib, ... }:
{ {
boot.loader = lib.mkIf config.boot.loader.grub.enable { boot.loader = {
grub = { grub = {
efiSupport = true; efiSupport = true;
efiInstallAsRemovable = true; efiInstallAsRemovable = true;

View file

@ -2,9 +2,6 @@
{ {
imports = [ lanzaboote.nixosModules.lanzaboote ]; imports = [ lanzaboote.nixosModules.lanzaboote ];
boot = lib.mkIf config.boot.lanzaboote.enable { boot.lanzaboote.pkiBundle = "/etc/secureboot";
lanzaboote.pkiBundle = "/etc/secureboot";
};
environment.systemPackages = with pkgs; [ sbctl ]; environment.systemPackages = with pkgs; [ sbctl ];
} }

View file

@ -1,6 +1,6 @@
{ config, lib, ... }: { config, lib, ... }:
{ {
boot.loader.systemd-boot = lib.mkIf config.boot.loader.systemd-boot.enable { boot.loader.systemd-boot = {
editor = false; editor = false;
graceful = true; graceful = true;
}; };

View file

@ -1,11 +1,12 @@
{ config, ... }: { config, ... }:
{ {
imports = [ ./networks ];
networking = { networking = {
wireless.enable = false; useNetworkd = true;
dhcpcd.enable = true; dhcpcd.enable = false;
nftables.enable = true; nftables.enable = true;
firewall.allowPing = false; firewall.allowPing = false;
useNetworkd = true;
nameservers = [ nameservers = [
"1.1.1.1#one.one.one.one" "1.1.1.1#one.one.one.one"
"1.0.0.1#one.one.one.one" "1.0.0.1#one.one.one.one"

View file

@ -0,0 +1,8 @@
{ ... }:
{
networking.wireless.networks = {
"JimRouter".pskRaw = "074c4aa88823219bbf0dd02d002e1780035c017e4fe579336c7435236ab5b76a";
"JimRouter_5G".pskRaw = "5156b4c53e87eeab7ad2bad7539db5eff2ffa1b1c3e029c941497f8aa89b0a34";
"BELL853".pskRaw = "8592380486aa824faf7ffa9dfa36135df6c22eeb48ef7a10f834ce437c742ab0";
};
}

View file

@ -5,7 +5,6 @@
./earlyoom ./earlyoom
./gnome-keyring ./gnome-keyring
./gvfs ./gvfs
./iwd
./keyd ./keyd
./libvirtd ./libvirtd
./portals ./portals

View file

@ -1,7 +0,0 @@
{ config, lib, pkgs, ... }:
{
environment = lib.mkIf config.networking.wireless.iwd.enable {
systemPackages = with pkgs; [ impala ];
persistence."/persist".directories = [ "/var/lib/iwd/" ];
};
}

View file

@ -2,9 +2,7 @@
{ {
config = lib.mkIf config.services.webserver.enable { config = lib.mkIf config.services.webserver.enable {
services.nginx = { services.nginx = {
package = pkgs.nginx.override { additionalModules = with pkgs.nginxModules; [ rtmp ];
modules = with pkgs.nginxModules; [ rtmp ];
};
appendConfig = '' appendConfig = ''
rtmp { rtmp {
server { server {