Compare commits
2 Commits
5c65e179d3
...
f8dd9b73f5
Author | SHA1 | Date | |
---|---|---|---|
f8dd9b73f5
|
|||
82d1a991ef
|
31
users/guest/common/optional/graphical/jellyfin.nix
Normal file
31
users/guest/common/optional/graphical/jellyfin.nix
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@@ -8,6 +8,13 @@
|
|||||||
steam
|
steam
|
||||||
];
|
];
|
||||||
|
|
||||||
|
home.persistence."/persist".directories = [
|
||||||
|
".config/gamescope"
|
||||||
|
".local/share/Steam"
|
||||||
|
".local/share/vulkan"
|
||||||
|
".steam"
|
||||||
|
];
|
||||||
|
|
||||||
systemd.user.services.steam-big-picture = {
|
systemd.user.services.steam-big-picture = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Steam Big Picture in Gamescope";
|
Description = "Steam Big Picture in Gamescope";
|
||||||
|
@@ -27,6 +27,7 @@ in
|
|||||||
|
|
||||||
home-manager.users.${name} = {
|
home-manager.users.${name} = {
|
||||||
imports = [
|
imports = [
|
||||||
|
./common/optional/graphical/jellyfin.nix
|
||||||
./common/optional/graphical/steam.nix
|
./common/optional/graphical/steam.nix
|
||||||
{
|
{
|
||||||
home.persistence."/state" = {
|
home.persistence."/state" = {
|
||||||
@@ -36,12 +37,7 @@ in
|
|||||||
};
|
};
|
||||||
home.persistence."/persist" = {
|
home.persistence."/persist" = {
|
||||||
directories = [
|
directories = [
|
||||||
".config/gamescope"
|
|
||||||
".config/jellyfin.org"
|
|
||||||
".local/share/icons"
|
".local/share/icons"
|
||||||
".local/share/Steam"
|
|
||||||
".local/share/vulkan"
|
|
||||||
".steam"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user