move some things around
This commit is contained in:
parent
af25753785
commit
473362b5f8
7 changed files with 36 additions and 42 deletions
35
modules/software/system/mpv.nix
Normal file
35
modules/software/system/mpv.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.software.system.mpv;
|
||||
in {
|
||||
options.modules.software.system.mpv = {
|
||||
enable = mkEnableOption "Enable mpv, a lightweight video player";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
hm.programs.mpv = {
|
||||
enable = true;
|
||||
|
||||
config = {
|
||||
hwdec = "auto";
|
||||
osc = "no";
|
||||
border = "no";
|
||||
};
|
||||
|
||||
scriptOpts = {
|
||||
visualizer = {
|
||||
mode = "noalbumart";
|
||||
};
|
||||
};
|
||||
|
||||
scripts = with pkgs.mpvScripts; [
|
||||
mpris
|
||||
modernx
|
||||
thumbfast
|
||||
visualizer
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue