All checks were successful
Check flake / build-amd64-linux (push) Successful in 1m43s
32 lines
619 B
Nix
32 lines
619 B
Nix
{
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
home.packages = with pkgs; [
|
|
gamescope
|
|
jellyfin-media-player
|
|
];
|
|
|
|
home.persistence."/persist".directories = [
|
|
".config/jellyfin.org"
|
|
];
|
|
|
|
systemd.user.services.jellyfin-media-player = {
|
|
Unit = {
|
|
Description = "Jellyfin Media Player in Gamescope";
|
|
After = [
|
|
"graphical.target"
|
|
"default.target"
|
|
];
|
|
};
|
|
Service = {
|
|
ExecStart = ''
|
|
${pkgs.gamescope}/bin/gamescope --rt --backend drm -- \
|
|
${pkgs.jellyfin-media-player}/bin/jellyfinmediaplayer --tv --scale-factor 2
|
|
'';
|
|
Restart = "always";
|
|
};
|
|
};
|
|
}
|