From 082b9327bb43a68dcab1e7af29f43b03fd2593dd Mon Sep 17 00:00:00 2001 From: alyx Date: Fri, 4 Jul 2025 10:59:15 +0100 Subject: [PATCH] do shit to make endcord work --- base/absolution/configuration.nix | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/base/absolution/configuration.nix b/base/absolution/configuration.nix index 17bc661..4ec1ece 100644 --- a/base/absolution/configuration.nix +++ b/base/absolution/configuration.nix @@ -60,7 +60,7 @@ adb.enable = true; flashrom.enable = true; nix-ld.enable = true; - nix-ld.libraries = with pkgs; [xorg.libxcb libao xorg.libX11 libusb1 cargo rustc pkg-config cacert]; + nix-ld.libraries = with pkgs; [xorg.libxcb libao xorg.libX11 libusb1 cargo rustc pkg-config cacert libpulseaudio libsecret file]; }; services.journald.extraConfig = '' @@ -75,9 +75,16 @@ }; networking.firewall.checkReversePath = "loose"; + services.resolved.enable = true; - networking.useNetworkd = true; - networking.interfaces.enp0s31f6.useDHCP = true; + + systemd.network.enable = true; + + systemd.network.networks."enp0s25" = { + matchConfig.Name = "enp0s25"; + networkConfig.DHCP = "yes"; + }; + networking.useDHCP = false; services.networkd-dispatcher = { @@ -85,7 +92,7 @@ rules."50-tailscale" = { onState = ["routable"]; script = '' - "${pkgs.ethtool} NETDEV=$(ip -o route get 8.8.8.8 | cut -f 5 -d " ") | -K enp0s31f6 rx-udp-gro-forwarding on rx-gro-list off" + "${pkgs.ethtool} NETDEV=$(ip -o route get 8.8.8.8 | cut -f 5 -d " ") | -K enp0s25 rx-udp-gro-forwarding on rx-gro-list off" ''; }; }; @@ -146,10 +153,10 @@ hardware.bluetooth.enable = true; services.blueman.enable = true; - networking.networkmanager = { - enable = true; - wifi.backend = "iwd"; - }; + #networking.networkmanager = { + # enable = true; + # wifi.backend = "iwd"; + #}; # Set your time zone. time.timeZone = "Europe/London"; @@ -271,6 +278,8 @@ environment.systemPackages = with pkgs; [ hyprlock + file + libsecret wget jmtpfs nautilus