refactor: complete rewrite
This commit is contained in:
parent
19a4bbda3c
commit
8e81943cf9
399 changed files with 3396 additions and 8042 deletions
24
modules/home/workstation/media/video.nix
Normal file
24
modules/home/workstation/media/video.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
lib,
|
||||
osConfig,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) elem mkIf;
|
||||
inherit (osConfig.ooknet.workstation) profiles;
|
||||
mpvMime = {
|
||||
"audio/*" = ["mpv.desktop"];
|
||||
"video/*" = ["mpv.desktop"];
|
||||
};
|
||||
in {
|
||||
config = mkIf (elem "media" profiles) {
|
||||
home.packages = [pkgs.jellyfin-media-player];
|
||||
programs.mpv = {
|
||||
enable = true;
|
||||
};
|
||||
xdg.mimeApps = {
|
||||
associations.added = mpvMime;
|
||||
defaultApplications = mpvMime;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue