Compare commits

...

4 Commits

8 changed files with 45 additions and 28 deletions

View File

@@ -14,21 +14,21 @@ let
''; '';
}; };
bambu-studio-wrapped = pkgs.symlinkJoin { # bambu-studio-wrapped = pkgs.symlinkJoin {
name = "bambu-studio-wrapped"; # name = "bambu-studio-wrapped";
paths = [ pkgs.bambu-studio ]; # paths = [ pkgs.bambu-studio ];
buildInputs = [ pkgs.makeWrapper ]; # buildInputs = [ pkgs.makeWrapper ];
postBuild = '' # postBuild = ''
wrapProgram $out/bin/bambu-studio \ # wrapProgram $out/bin/bambu-studio \
--prefix MESA_LOADER_DRIVER_OVERRIDE : zink \ # --prefix MESA_LOADER_DRIVER_OVERRIDE : zink \
--prefix __EGL_VENDOR_LIBRARY_FILENAMES : ${pkgs.mesa}/share/glvnd/egl_vendor.d/50_mesa.json # --prefix __EGL_VENDOR_LIBRARY_FILENAMES : ${pkgs.mesa}/share/glvnd/egl_vendor.d/50_mesa.json
''; # '';
}; # };
in in
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
bambu-studio-wrapped # bambu-studio-wrapped
lycheeslicer lycheeslicer
orca-slicer orca-slicer

View File

@@ -37,7 +37,8 @@
Type = "oneshot"; Type = "oneshot";
RemainAfterExit = true; RemainAfterExit = true;
# Eww won't start right if Hyprland hasn't finished initializing. # Eww won't start right if Hyprland hasn't finished initializing.
ExecStart = "sleep 2 && ${pkgs.eww}/bin/eww open-many ${lib.concatStringsSep " " config.programs.eww.widgets}"; ExecStartPre = "${pkgs.coreutils}/bin/sleep 2";
ExecStart = "${pkgs.eww}/bin/eww open-many ${lib.concatStringsSep " " config.programs.eww.widgets}";
ExecStop = "${pkgs.eww}/bin/eww kill"; ExecStop = "${pkgs.eww}/bin/eww kill";
}; };

View File

@@ -18,6 +18,7 @@
htop htop
btop btop
psmisc # fuser, killall, pstree psmisc # fuser, killall, pstree
lsof
# Session management # Session management
tmux tmux
@@ -45,6 +46,7 @@
# Networking # Networking
dnsutils dnsutils
inetutils inetutils
net-tools
socat socat
xh xh

View File

@@ -1,6 +1,9 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
# Enable bluetooth.
hardware.bluetooth.enable = true;
# Install the management service and packages.
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
bluez bluez
]; ];

View 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";
}

View File

@@ -11,6 +11,7 @@
../../features/gc.nix ../../features/gc.nix
../../features/gui.nix ../../features/gui.nix
../../features/virtualbox.nix ../../features/virtualbox.nix
../../features/xpadneo.nix
./configuration.nix ./configuration.nix
./hardware-configuration.nix ./hardware-configuration.nix
./qmk.nix ./qmk.nix

View File

@@ -8,7 +8,6 @@
"/features/development/haskell.nix" "/features/development/haskell.nix"
"/features/development/markdown.nix" "/features/development/markdown.nix"
"/features/development/typescript.nix" "/features/development/typescript.nix"
"/features/development/vscode.nix"
"/features/eww" "/features/eww"
"/features/email.nix" "/features/email.nix"
"/features/gaming.nix" "/features/gaming.nix"

View File

@@ -32,14 +32,6 @@
}; };
kernelModules = [ "kvm-intel" ]; kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ]; 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 = { fileSystems = {
@@ -115,13 +107,6 @@
# Enable the nvidia-settings menu? # Enable the nvidia-settings menu?
nvidiaSettings = true; 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 # Add a udev rule to prevent the mouse from waking the system. Note that it