nixos/modules/desktop/media/mpv/default.nix
2024-08-01 16:24:09 +04:00

24 lines
470 B
Nix

{ outputs, options, config, lib, pkgs, ...}:
let
cfg = config.modules.desktop.media.mpv;
in
{
options.modules.desktop.media.mpv = {
enable = lib.mkEnableOption false;
};
config = lib.mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
mpv
];
home-manager.users.sako = { pkgs, ... }: {
xdg.configFile = {
mpv = {
source = ../../../../config/mpv;
recursive = true;
};
};
};
};
}