mpv scripts
This commit is contained in:
parent
fae3d16162
commit
46af8ff2a9
2 changed files with 25 additions and 1 deletions
|
@ -17,7 +17,7 @@
|
|||
# debug
|
||||
strace ltrace lsof
|
||||
# apps
|
||||
firefox mpv qalculate-gtk krita
|
||||
firefox qalculate-gtk krita
|
||||
# compatibility
|
||||
wineWowPackages.waylandFull winetricks
|
||||
# misc
|
||||
|
@ -73,6 +73,8 @@
|
|||
distractions.discord.enable = true;
|
||||
distractions.discord.vesktop = true;
|
||||
distractions.steam.enable = true;
|
||||
# tools
|
||||
tools.mpv.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
22
modules/software/tools/mpv.nix
Normal file
22
modules/software/tools/mpv.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.software.tools.mpv;
|
||||
in {
|
||||
options.modules.software.tools.mpv = {
|
||||
enable = mkEnableOption "Enable mpv, a lightweight video player";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
hm.programs.mpv = {
|
||||
enable = true;
|
||||
|
||||
scripts = with pkgs.mpvScripts; [
|
||||
mpris
|
||||
thumbnail
|
||||
visualizer
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue