Skip to content

Instantly share code, notes, and snippets.

@matthew-piziak
Created April 8, 2020 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthew-piziak/7a17d1d38c300087b4b3770f1154cc87 to your computer and use it in GitHub Desktop.
Save matthew-piziak/7a17d1d38c300087b4b3770f1154cc87 to your computer and use it in GitHub Desktop.
{ pkgs, ... }:
{
imports = [ ./plex-mpv-shim.nix ];
environment.systemPackages = (with pkgs; [
plex-media-player # Plex client
unstable.plex-mpv-shim # Play Plex videos with MPV
]);
services = {
plex.enable = true; # Plex server
plex-mpv-shim = {
enable = true; # Plex MPV Shim service
# https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/boot/systemd-unit-options.nix#L63
wantedBy = [ "multi-user.target" ];
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment