tvl-depot/users/tazjin/nixos/modules/desktop.nix
Vincent Ambo 9ea1862750 fix(tazjin/nixos): replace wezterm with alacritty again
wezterm has very strange rendering bugs which I have no interest in debugging

Change-Id: I59a068df9b4474830ba4706bf8e626b45cd015f0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12424
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2024-09-03 13:45:24 +00:00

62 lines
1.3 KiB
Nix

# EXWM and other desktop configuration.
{ config, depot, lib, pkgs, ... }:
{
services = {
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
blueman.enable = true;
libinput.enable = true;
xserver = {
enable = true;
xkb.layout = "us";
xkb.options = "caps:super";
displayManager.sessionPackages = [ pkgs.niri ];
displayManager.gdm = {
enable = true;
wayland = true;
};
};
};
programs.xwayland.enable = true;
environment.systemPackages = with pkgs; [
# core packages
niri
xwayland-satellite
swaylock
# support tooling
alacritty
qt5.qtwayland
sfwbar
swayidle
wdisplays
wl-mirror
xfce.xfce4-appfinder
];
# Do not restart the display manager automatically
systemd.services.display-manager.restartIfChanged = lib.mkForce false;
# swaylock needs an empty PAM configuration, otherwise it locks the user out
security.pam.services.swaylock = { };
# enable theming support for Qt that is compatible with Chicago95 theme
qt.enable = true;
qt.platformTheme = "qt5ct";
# If something needs more than 10s to stop it should probably be
# killed.
systemd.extraConfig = ''
DefaultTimeoutStopSec=10s
'';
}