mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
nixos/phosh: Ensure that desktop session is identified as Phosh
This commit is contained in:
parent
a9982a78ee
commit
8513f69b24
@ -186,6 +186,21 @@ in
|
||||
UtmpIdentifier = "tty7";
|
||||
UtmpMode = "user";
|
||||
};
|
||||
environment = {
|
||||
# We are running without a display manager, so need to provide
|
||||
# a value for XDG_CURRENT_DESKTOP.
|
||||
#
|
||||
# Among other things, this variable influences:
|
||||
# - visibility of desktop entries with "OnlyShowIn=Phosh;"
|
||||
# https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.5.html#key-onlyshowin
|
||||
# - the chosen xdg-desktop-portal configuration.
|
||||
# https://flatpak.github.io/xdg-desktop-portal/docs/portals.conf.html
|
||||
XDG_CURRENT_DESKTOP = "Phosh:GNOME";
|
||||
# pam_systemd uses these to identify the session in logind.
|
||||
# https://www.freedesktop.org/software/systemd/man/latest/pam_systemd.html#desktop=
|
||||
XDG_SESSION_DESKTOP = "phosh";
|
||||
XDG_SESSION_TYPE = "wayland";
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = [
|
||||
|
Loading…
Reference in New Issue
Block a user