add: desktop xdg integration

This commit is contained in:
2026-09-23 18:43:38 -04:00
parent 9b60cdac2c
commit b427889b06
6 changed files with 55 additions and 37 deletions
+7
View File
@@ -42,6 +42,8 @@
then "lightdm"
else "none";
in {
imports = [./xdg.nix];
options.desktop = {
displayManager = lib.mkOption {
type = lib.types.enum ["auto" "none" "gdm" "lightdm" "ly"];
@@ -141,6 +143,11 @@ in {
enable = true;
wrapperFeatures.gtk = true;
extraPackages = cfg.sway.extraPackages;
extraSessionCommands = ''
export XDG_SESSION_TYPE=wayland
export XDG_SESSION_DESKTOP=sway
export NIXOS_OZONE_WL=1
'';
};
})