l aergia.r: more hardware settings
This commit is contained in:
parent
3bb70cd5c2
commit
521dd6afa5
@ -16,7 +16,7 @@
|
|||||||
efiInstallAsRemovable = true;
|
efiInstallAsRemovable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
# boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
boot.kernelParams = [
|
boot.kernelParams = [
|
||||||
# use less power with pstate
|
# use less power with pstate
|
||||||
@ -70,8 +70,6 @@
|
|||||||
};
|
};
|
||||||
users.users.mainUser.extraGroups = [ "corectrl" ];
|
users.users.mainUser.extraGroups = [ "corectrl" ];
|
||||||
|
|
||||||
# use newer ryzenadj
|
|
||||||
|
|
||||||
# keyboard quirks
|
# keyboard quirks
|
||||||
services.xserver.displayManager.sessionCommands = ''
|
services.xserver.displayManager.sessionCommands = ''
|
||||||
${pkgs.xorg.xmodmap}/bin/xmodmap -e 'keycode 96 = F12 Insert F12 F12' # rebind shift + F12 to shift + insert
|
${pkgs.xorg.xmodmap}/bin/xmodmap -e 'keycode 96 = F12 Insert F12 F12' # rebind shift + F12 to shift + insert
|
||||||
@ -102,9 +100,16 @@
|
|||||||
services.logind.extraConfig = ''
|
services.logind.extraConfig = ''
|
||||||
HandlePowerKey=hibernate
|
HandlePowerKey=hibernate
|
||||||
'';
|
'';
|
||||||
|
# systemd.sleep.extraConfig = ''
|
||||||
|
# HibernateDelaySec=1800
|
||||||
|
# '';
|
||||||
|
|
||||||
# firefox touchscreen support
|
# firefox touchscreen support
|
||||||
environment.sessionVariables.MOZ_USE_XINPUT2 = "1";
|
environment.sessionVariables.MOZ_USE_XINPUT2 = "1";
|
||||||
|
|
||||||
|
# enable thunderbolt
|
||||||
|
services.hardware.bolt.enable = true;
|
||||||
|
|
||||||
# reinit usb after docking station connect
|
# reinit usb after docking station connect
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
SUBSYSTEM=="drm", ACTION=="change", RUN+="${pkgs.dash}/bin/dash -c 'echo 0 > /sys/bus/usb/devices/usb9/authorized; echo 1 > /sys/bus/usb/devices/usb9/authorized'"
|
SUBSYSTEM=="drm", ACTION=="change", RUN+="${pkgs.dash}/bin/dash -c 'echo 0 > /sys/bus/usb/devices/usb9/authorized; echo 1 > /sys/bus/usb/devices/usb9/authorized'"
|
||||||
|
Loading…
Reference in New Issue
Block a user