Files
nix-config/users/guest/common/optional/graphical/jellyfin.nix
Jordan Holt c5bfed5a84
All checks were successful
Check flake / build-amd64-linux (push) Successful in 1m42s
users/guest: adjust jellyfin-media-player
2025-09-28 22:55:26 +01:00

41 lines
864 B
Nix

{
pkgs,
...
}:
{
home.packages = with pkgs; [
gamescope
jellyfin-media-player
];
home.persistence."/state".directories = [
".cache/jellyfin.org"
];
home.persistence."/persist".directories = [
".config/jellyfin.org"
".local/share/jellyfinmediaplayer"
".local/share/Jellyfin Media Player"
];
systemd.user.services.jellyfin-media-player = {
Unit = {
Description = "Jellyfin Media Player in Gamescope";
After = [
"graphical.target"
"default.target"
];
};
Service = {
ExecStart = ''
${pkgs.gamescope}/bin/gamescope --hdr-enabled --rt --backend drm -- \
${pkgs.jellyfin-media-player}/bin/jellyfinmediaplayer --scale-factor 2 --tv --fullscreen
'';
Restart = "always";
};
Install = {
WantedBy = [ "default.target" ];
};
};
}