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;
|
enable = true;
|
||||||
sessionPackages =
|
sessionPackages =
|
||||||
let
|
let
|
||||||
steamDesktopFile = pkgs.writeTextFile {
|
firefoxDesktopFile = pkgs.writeTextFile {
|
||||||
name = "steam-desktop-entry";
|
name = "firefox-desktop-entry";
|
||||||
destination = "/share/wayland-sessions/steam.desktop";
|
destination = "/share/wayland-sessions/firefox.desktop";
|
||||||
text = ''
|
text = ''
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=steam
|
Name=Firefox
|
||||||
Comment=Desktop session for gaming
|
Comment=Desktop session for web browsing
|
||||||
Exec=${pkgs.gamescope}/bin/gamescope --rt --backend drm --steam -- ${pkgs.steam}/bin/steam -pipewire-dmabuf -tenfoot
|
Exec=${pkgs.gamescope}/bin/gamescope --rt --backend drm -- ${pkgs.firefox}/bin/firefox https://www.youtube.com/
|
||||||
Type=Application
|
Type=Application
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
@@ -86,28 +86,47 @@ in
|
|||||||
destination = "/share/wayland-sessions/jellyfin.desktop";
|
destination = "/share/wayland-sessions/jellyfin.desktop";
|
||||||
text = ''
|
text = ''
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=jellyfin
|
Name=Jellyfin
|
||||||
Comment=Desktop session for music, movies, and TV
|
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
|
Exec=${pkgs.gamescope}/bin/gamescope --rt --backend drm -- ${pkgs.jellyfin-media-player}/bin/jellyfinmediaplayer --scale-factor 2 --tv --fullscreen
|
||||||
Type=Application
|
Type=Application
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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 {
|
||||||
|
name = "jellyfin-session";
|
||||||
|
paths = [ jellyfinDesktopFile ];
|
||||||
|
passthru.providedSessions = [ "jellyfin" ];
|
||||||
|
};
|
||||||
|
|
||||||
steamSession = pkgs.symlinkJoin {
|
steamSession = pkgs.symlinkJoin {
|
||||||
name = "steam-session";
|
name = "steam-session";
|
||||||
paths = [ steamDesktopFile ];
|
paths = [ steamDesktopFile ];
|
||||||
passthru.providedSessions = [ "steam" ];
|
passthru.providedSessions = [ "steam" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
jellyfinSession = pkgs.symlinkJoin {
|
|
||||||
name = "jellyfin-session";
|
|
||||||
paths = [ jellyfinDesktopFile ];
|
|
||||||
passthru.providedSessions = [ "jellyfin " ];
|
|
||||||
};
|
|
||||||
in
|
in
|
||||||
[
|
[
|
||||||
steamSession
|
firefoxSession
|
||||||
jellyfinSession
|
jellyfinSession
|
||||||
|
steamSession
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user