diff --git a/bathtub/home.nix b/bathtub/home.nix index c89380b..cc133b8 100644 --- a/bathtub/home.nix +++ b/bathtub/home.nix @@ -46,9 +46,7 @@ libreoffice-fresh musescore networkmanagerapplet - openscad signal-desktop - teams-for-linux typst wl-clipboard ]; diff --git a/bathtub/specialisation.nix b/bathtub/specialisation.nix index 8bab577..3e5a0fe 100644 --- a/bathtub/specialisation.nix +++ b/bathtub/specialisation.nix @@ -1,13 +1,23 @@ { pkgs, lib, ... }: { specialisation = { - gaming.configuration = { - virtualisation.docker = { - enable = true; - }; - environment.systemPackages = [ pkgs.distrobox ]; - users.users.monke.extraGroups = [ "docker" ]; + battery.configuration = { + boot.kernelPatches = [ + { + name = "pmp"; + patch = ../files/pmp.patch; + } + ]; }; - # fairydust.configuration.boot.kernelPackages = lib.mkForce pkgs.linux-asahi-fairydust; + /* + gaming.configuration = { + virtualisation.docker = { + enable = true; + }; + environment.systemPackages = [ pkgs.distrobox ]; + users.users.monke.extraGroups = [ "docker" ]; + }; + fairydust.configuration.boot.kernelPackages = lib.mkForce pkgs.linux-asahi-fairydust; + */ }; } diff --git a/files/pmp.patch b/files/pmp.patch new file mode 100644 index 0000000..539ec98 --- /dev/null +++ b/files/pmp.patch @@ -0,0 +1,12 @@ +diff --git a/arch/arm64/boot/dts/apple/t6000-j314s.dts b/arch/arm64/boot/dts/apple/t6000-j314s.dts +index afa86668440f..f149b515e064 100644 +--- a/arch/arm64/boot/dts/apple/t6000-j314s.dts ++++ b/arch/arm64/boot/dts/apple/t6000-j314s.dts +@@ -11,6 +11,7 @@ + + #include "t6000.dtsi" + #include "t600x-j314-j316.dtsi" ++#define APPLE_USE_PMP 1 + + / { + compatible = "apple,j314s", "apple,t6000", "apple,arm-platform"; diff --git a/tundra/home.nix b/tundra/home.nix index e2cd854..bf32653 100644 --- a/tundra/home.nix +++ b/tundra/home.nix @@ -39,7 +39,6 @@ preferXdgDirectories = true; packages = with pkgs; [ - teams-for-linux gsettings-desktop-schemas networkmanagerapplet openscad