tvl-depot/users/tazjin/nixos/modules/desktop.nix
Vincent Ambo 72bdb15958 feat(tazjin/dotfiles): add waybar configuration
This configuration is not automatically placed anywhere yet, because I'm also
still actively iterating on it.

Change-Id: I0a13fcbc2b9a5587480f6a69a73ab99b36d209e6
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12435
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: tazjin <tazjin@tvl.su>
2024-09-05 22:11:42 +00:00

74 lines
1.7 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; # wayland doesn't work otherwise ...?!
displayManager.gdm = {
enable = true;
wayland = true;
};
};
};
services.displayManager.sessionPackages = [ pkgs.niri ];
programs.xwayland.enable = true;
environment.systemPackages = with pkgs; [
# core packages
niri
xwayland-satellite
swaylock
# support tooling
alacritty
qt5.qtwayland
swayidle
waybar
wdisplays
wl-mirror
xfce.xfce4-appfinder
];
# Do not restart the display manager automatically
systemd.services.display-manager.restartIfChanged = lib.mkForce false;
# pipewire MUST start before niri, otherwise screen sharing doesn't work
systemd.user.services.pipewire.wantedBy = [ "niri.service" ];
systemd.user.services.pipewire.before = [ "niri.service" ];
# enable "desktop portals", which are important somehow
xdg.portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
xdg-desktop-portal-gnome
];
config.common.default = "*";
};
# 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
'';
}