move some things around

This commit is contained in:
Reid 2024-12-18 16:55:30 -08:00
parent af25753785
commit 473362b5f8
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
7 changed files with 36 additions and 42 deletions

View 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
];
};
};
}