Compare commits
3 Commits
62f8ba323e
...
6d3bb1bef5
| Author | SHA1 | Date | |
|---|---|---|---|
| 6d3bb1bef5 | |||
| e9e868a4c5 | |||
| bc39d60a00 |
@@ -14,21 +14,21 @@ let
|
||||
'';
|
||||
};
|
||||
|
||||
bambu-studio-wrapped = pkgs.symlinkJoin {
|
||||
name = "bambu-studio-wrapped";
|
||||
paths = [ pkgs.bambu-studio ];
|
||||
buildInputs = [ pkgs.makeWrapper ];
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/bambu-studio \
|
||||
--prefix MESA_LOADER_DRIVER_OVERRIDE : zink \
|
||||
--prefix __EGL_VENDOR_LIBRARY_FILENAMES : ${pkgs.mesa}/share/glvnd/egl_vendor.d/50_mesa.json
|
||||
'';
|
||||
};
|
||||
# bambu-studio-wrapped = pkgs.symlinkJoin {
|
||||
# name = "bambu-studio-wrapped";
|
||||
# paths = [ pkgs.bambu-studio ];
|
||||
# buildInputs = [ pkgs.makeWrapper ];
|
||||
# postBuild = ''
|
||||
# wrapProgram $out/bin/bambu-studio \
|
||||
# --prefix MESA_LOADER_DRIVER_OVERRIDE : zink \
|
||||
# --prefix __EGL_VENDOR_LIBRARY_FILENAMES : ${pkgs.mesa}/share/glvnd/egl_vendor.d/50_mesa.json
|
||||
# '';
|
||||
# };
|
||||
in
|
||||
{
|
||||
|
||||
home.packages = with pkgs; [
|
||||
bambu-studio-wrapped
|
||||
# bambu-studio-wrapped
|
||||
lycheeslicer
|
||||
orca-slicer
|
||||
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
# Enable bluetooth.
|
||||
hardware.bluetooth.enable = true;
|
||||
|
||||
# Install the management service and packages.
|
||||
environment.systemPackages = with pkgs; [
|
||||
bluez
|
||||
];
|
||||
|
||||
26
system/features/xpadneo.nix
Normal file
26
system/features/xpadneo.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
_: {
|
||||
hardware = {
|
||||
# Wireless xbox controllers
|
||||
xpadneo = {
|
||||
enable = true;
|
||||
settings = {
|
||||
disable_mouse = 1;
|
||||
};
|
||||
};
|
||||
|
||||
# Hardwired xbox controllers.
|
||||
xone.enable = true;
|
||||
};
|
||||
|
||||
# disable_ertm is required for xpadneo to connect properly and establish a
|
||||
# data connection. enable_autosuspend is to prevent Linux from putting the
|
||||
# BT radio to sleep and causing a disconnect.
|
||||
boot.extraModprobeConfig = ''
|
||||
options bluetooth disable_ertm=1
|
||||
options btusb enable_autosuspend=0
|
||||
'';
|
||||
|
||||
# Steam also needs HID API to be off so SDL will read directly from evdev,
|
||||
# otherwise it won't get any events from xpadneo.
|
||||
environment.sessionVariables.SDL_JOYSTICK_HIDAPI = "0";
|
||||
}
|
||||
@@ -11,6 +11,7 @@
|
||||
../../features/gc.nix
|
||||
../../features/gui.nix
|
||||
../../features/virtualbox.nix
|
||||
../../features/xpadneo.nix
|
||||
./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
./qmk.nix
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
"/features/development/haskell.nix"
|
||||
"/features/development/markdown.nix"
|
||||
"/features/development/typescript.nix"
|
||||
"/features/development/vscode.nix"
|
||||
"/features/eww"
|
||||
"/features/email.nix"
|
||||
"/features/gaming.nix"
|
||||
|
||||
@@ -32,14 +32,6 @@
|
||||
};
|
||||
kernelModules = [ "kvm-intel" ];
|
||||
extraModulePackages = [ ];
|
||||
|
||||
# disable_ertm is required for xpadneo to connect properly and establish a
|
||||
# data connection. enable_autosuspend is to prevent Linux from putting the
|
||||
# BT radio to sleep and causing a disconnect.
|
||||
extraModprobeConfig = ''
|
||||
options bluetooth disable_ertm=1
|
||||
options btusb enable_autosuspend=0
|
||||
'';
|
||||
};
|
||||
|
||||
fileSystems = {
|
||||
@@ -115,13 +107,6 @@
|
||||
# Enable the nvidia-settings menu?
|
||||
nvidiaSettings = true;
|
||||
};
|
||||
xpadneo = {
|
||||
enable = true;
|
||||
settings = {
|
||||
disable_mouse = 1;
|
||||
};
|
||||
};
|
||||
bluetooth.enable = true;
|
||||
};
|
||||
|
||||
# Add a udev rule to prevent the mouse from waking the system. Note that it
|
||||
|
||||
Reference in New Issue
Block a user