nix-conf/system/display.nix
2025-08-13 11:26:48 -04:00

32 lines
813 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;
};
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";
};
}