home: add mpv
This commit is contained in:
parent
4d0ab2e5a6
commit
82099b19f3
2 changed files with 20 additions and 0 deletions
|
|
@ -14,6 +14,7 @@
|
||||||
./gtk.nix
|
./gtk.nix
|
||||||
./htop.nix
|
./htop.nix
|
||||||
./jq.nix
|
./jq.nix
|
||||||
|
./mpv.nix
|
||||||
./nix-index.nix
|
./nix-index.nix
|
||||||
./nm-applet.nix
|
./nm-applet.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
|
|
|
||||||
19
home/mpv.nix
Normal file
19
home/mpv.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
{ 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue