nix-conf/system/display.nix
2026-03-12 20:44:33 -05:00

45 lines
1.1 KiB
Nix

{
config,
lib,
pkgs,
...
}:
lib.mkIf config.u.has.graphical {
services.xserver = {
enable = true;
autorun = false;
displayManager.sx.enable = true;
windowManager.awesome = {
enable = true;
luaModules = [pkgs.luaPackages.vicious];
};
autoRepeatDelay = 200;
autoRepeatInterval = 30;
inputClassSections = [
''
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "AutoRepeat" "200 30"
''
];
};
services.desktopManager.plasma6.enable = true;
programs.partition-manager.enable = true;
environment.systemPackages = let
application-menu = pkgs.runCommandLocal "xdg-application-menu" {} ''
mkdir -p $out/etc/xdg/menus/
ln -s ${pkgs.kdePackages.plasma-workspace}/etc/xdg/menus/plasma-applications.menu $out/etc/xdg/menus/applications.menu
'';
in [application-menu];
services.libinput = {
enable = true;
mouse = {
accelProfile = "flat";
middleEmulation = false;
additionalOptions = ''
Option "HighResolutionWheelScrolling" "0"
'';
};
};
}