users/guest: add firefox desktop entry
All checks were successful
Check flake / build-amd64-linux (push) Successful in 1m21s
All checks were successful
Check flake / build-amd64-linux (push) Successful in 1m21s
This commit is contained in:
@@ -69,14 +69,14 @@ in
|
||||
enable = true;
|
||||
sessionPackages =
|
||||
let
|
||||
steamDesktopFile = pkgs.writeTextFile {
|
||||
name = "steam-desktop-entry";
|
||||
destination = "/share/wayland-sessions/steam.desktop";
|
||||
firefoxDesktopFile = pkgs.writeTextFile {
|
||||
name = "firefox-desktop-entry";
|
||||
destination = "/share/wayland-sessions/firefox.desktop";
|
||||
text = ''
|
||||
[Desktop Entry]
|
||||
Name=steam
|
||||
Comment=Desktop session for gaming
|
||||
Exec=${pkgs.gamescope}/bin/gamescope --rt --backend drm --steam -- ${pkgs.steam}/bin/steam -pipewire-dmabuf -tenfoot
|
||||
Name=Firefox
|
||||
Comment=Desktop session for web browsing
|
||||
Exec=${pkgs.gamescope}/bin/gamescope --rt --backend drm -- ${pkgs.firefox}/bin/firefox https://www.youtube.com/
|
||||
Type=Application
|
||||
'';
|
||||
};
|
||||
@@ -86,17 +86,29 @@ in
|
||||
destination = "/share/wayland-sessions/jellyfin.desktop";
|
||||
text = ''
|
||||
[Desktop Entry]
|
||||
Name=jellyfin
|
||||
Name=Jellyfin
|
||||
Comment=Desktop session for music, movies, and TV
|
||||
Exec=${pkgs.gamescope}/bin/gamescope --rt --backend drm -- ${pkgs.jellyfin-media-player}/bin/jellyfinmediaplayer --scale-factor 2 --tv --fullscreen
|
||||
Type=Application
|
||||
'';
|
||||
};
|
||||
|
||||
steamSession = pkgs.symlinkJoin {
|
||||
name = "steam-session";
|
||||
paths = [ steamDesktopFile ];
|
||||
passthru.providedSessions = [ "steam" ];
|
||||
steamDesktopFile = pkgs.writeTextFile {
|
||||
name = "steam-desktop-entry";
|
||||
destination = "/share/wayland-sessions/steam.desktop";
|
||||
text = ''
|
||||
[Desktop Entry]
|
||||
Name=Steam
|
||||
Comment=Desktop session for gaming
|
||||
Exec=${pkgs.gamescope}/bin/gamescope --rt --backend drm --steam -- ${pkgs.steam}/bin/steam -pipewire-dmabuf -tenfoot
|
||||
Type=Application
|
||||
'';
|
||||
};
|
||||
|
||||
firefoxSession = pkgs.symlinkJoin {
|
||||
name = "firefox-session";
|
||||
paths = [ firefoxDesktopFile ];
|
||||
passthru.providedSessions = [ "firefox" ];
|
||||
};
|
||||
|
||||
jellyfinSession = pkgs.symlinkJoin {
|
||||
@@ -104,10 +116,17 @@ in
|
||||
paths = [ jellyfinDesktopFile ];
|
||||
passthru.providedSessions = [ "jellyfin" ];
|
||||
};
|
||||
|
||||
steamSession = pkgs.symlinkJoin {
|
||||
name = "steam-session";
|
||||
paths = [ steamDesktopFile ];
|
||||
passthru.providedSessions = [ "steam" ];
|
||||
};
|
||||
in
|
||||
[
|
||||
steamSession
|
||||
firefoxSession
|
||||
jellyfinSession
|
||||
steamSession
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user