add mpv in home package

This commit is contained in:
ulic-youthlic 2025-01-17 15:44:01 +08:00
parent 5bc9540ef3
commit e1bd56b5aa
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
3 changed files with 18 additions and 0 deletions

View file

@ -29,6 +29,7 @@
foot.enable = false;
starship.enable = true;
sops.enable = true;
mpv.enable = true;
};
david = {

View file

@ -23,6 +23,7 @@
./niri.nix
./wluma.nix
./waybar.nix
./mpv.nix
];
options = {

16
home/modules/mpv.nix Normal file
View file

@ -0,0 +1,16 @@
{ lib, config, ... }:
let
cfg = config.youthlic.programs.mpv;
in
{
options = {
youthlic.programs.mpv = {
enable = lib.mkEnableOption "mpv";
};
};
config = lib.mkIf cfg.enable {
programs.mpv = {
enable = true;
};
};
}