From 813ba34cdeea6185e9cd9b4e52f3f2078103a61f Mon Sep 17 00:00:00 2001 From: niten Date: Thu, 9 Dec 2021 09:44:35 -0800 Subject: [PATCH] Switch xpadneo to github to try fix controller. --- config/hardware/system3.nix | 10 +++++++++- config/host-config/system3.nix | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/config/hardware/system3.nix b/config/hardware/system3.nix index 1432f6a..f0e0ad0 100644 --- a/config/hardware/system3.nix +++ b/config/hardware/system3.nix @@ -19,7 +19,15 @@ in { }; kernelModules = [ "kvm-amd" ]; - kernelPackages = pkgs.linuxPackages_latest; + kernelPackages = pkgs.linuxPackages_latest.extend (final: prev: { + xpadneo = prev.xpadneo.overrideAttrs (attrs: rec { + src = pkgs.fetchgit { + url = "https://github.com/atar-axis/xpadneo.git"; + rev = "cf392a7c93e05d76b6d3befc5b70e19e894f6823"; + sha256 = "1ak8n3xfp1bc5j8nb6yyw809gr41w0nizsa35lajrn3nqp4r2n6b"; + }; + }); + }); # kernelPatches = [{ # name = "big-navi"; diff --git a/config/host-config/system3.nix b/config/host-config/system3.nix index f211043..356ea56 100644 --- a/config/host-config/system3.nix +++ b/config/host-config/system3.nix @@ -6,7 +6,7 @@ in { environment.systemPackages = with pkgs; [ opencv-java ]; - networking = { interfaces = { intif0 = { useDHCP = true; }; }; }; + networking.interfaces.intif0.useDHCP = true; systemd.tmpfiles.rules = [ "L /root/.gnupg - - - - ${state-dir}/user/root/gnupg"