Added media player & jellyfin stuff

This commit is contained in:
James Patrick 2022-05-22 19:35:16 -04:00
parent 650cfe1724
commit 32ba5505f0
2 changed files with 27 additions and 0 deletions

View File

@ -8,6 +8,7 @@
./gnome-common.nix ./gnome-common.nix
./kdeconnect.nix ./kdeconnect.nix
./kitty.nix ./kitty.nix
./media.nix
./nextcloud.nix ./nextcloud.nix
./spotify.nix ./spotify.nix

View File

@ -0,0 +1,26 @@
{ config, lib, pkgs, ... }:
let
cfg = config.this.application.media;
graphical = config.this.graphical;
in with lib; {
options = {
this.application.media.enable = mkOption {
default = graphical.enable;
type = with types; bool;
};
};
config = mkIf cfg.enable {
home-manager.users.james = {
programs.mpv = {
enable = true;
scripts = with pkgs.mpvScripts; [ mpris thumbnail ];
};
home.packages = with pkgs; [
jellyfin-mpv-shim
jellyfin-media-player
jftui
];
};
};
}