Bruno BELANYI
65a8f7c481
Consolidating all modules under the same path, to clear out the top-level directory.
20 lines
340 B
Nix
20 lines
340 B
Nix
{ config, lib, pkgs, ... }:
|
|
let
|
|
cfg = config.my.home.mpv;
|
|
in
|
|
{
|
|
options.my.home.mpv = with lib; {
|
|
enable = mkEnableOption "mpv configuration";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs.mpv = {
|
|
enable = true;
|
|
|
|
scripts = [
|
|
pkgs.mpvScripts.mpris # Allow controlling using media keys
|
|
];
|
|
};
|
|
};
|
|
}
|