refactor: removing needless module complexity
This commit is contained in:
20
modules/home/programs/mpv/default.nix
Normal file
20
modules/home/programs/mpv/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.mpv;
|
||||
in {
|
||||
options = {
|
||||
home.programs.mpv.enable = mkEnableOption "Enables mpv";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.mpv = {
|
||||
enable = true;
|
||||
defaultProfiles = ["gpu-hq"];
|
||||
scripts = [pkgs.mpvScripts.mpris];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user