nix-conf/system/display.nix
2026-01-01 01:39:38 -06:00

39 lines
968 B
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";
};
}