blob: 96f9c876f2fcfe7fa303aa6786afb0dfab1c86cb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{
config,
options,
lib,
pkgs,
...
}: let
mpvConfig = config.modules.desktop.apps.mpv;
in
{
options.modules.desktop.apps.mpv = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
};
};
config = lib.mkIf (mpvConfig.enable) {
home.packages = [
pkgs.mpv
];
modules.desktop.defaultApplications.apps.video = rec {
package = pkgs.mpv;
install = false;
cmd = "${package}/bin/mpv";
desktop = "mpv";
};
};
}
|