infra/module/aspect/desktop/session/modular.nix

48 lines
1.3 KiB
Nix
Raw Normal View History

2025-12-01 13:23:24 +07:00
{
den.aspects = {
desktop-session-modular = {
nixos =
{ lib, pkgs, ... }:
{
# ----- xfce (x11 + wayland)
services.xserver.desktopManager.xfce = {
enable = true;
noDesktop = true;
enableXfwm = false;
};
services.xserver.desktopManager.xfce.enableWaylandSession = true;
environment.variables = {
XDG_CURRENT_DESKTOP = "XFCE";
};
programs.xfconf.enable = true;
programs.thunar = {
enable = true;
plugins = [
pkgs.xfce.thunar-volman
pkgs.xfce.thunar-vcs-plugin
pkgs.xfce.thunar-archive-plugin
];
};
environment.xfce.excludePackages = [
pkgs.xfce.xfce4-terminal
pkgs.xfce.parole
];
environment.systemPackages = [
pkgs.xfce.exo
];
# ----- openbox (x11)
services.xserver.windowManager.openbox.enable = true;
# ----- labwc (wayland)
programs.labwc.enable = true;
# ----- picom (X11 compositor)
services.picom = {
enable = true;
vSync = true;
settings = {
backend = "egl";
};
};
};
};
};
}