add: desktop xdg integration
This commit is contained in:
@@ -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
|
||||
'';
|
||||
};
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user