mpv
This commit is contained in:
parent
3484cfa30a
commit
658482fbfa
4 changed files with 27 additions and 0 deletions
0
config/mpv/mpv.conf
Normal file
0
config/mpv/mpv.conf
Normal file
|
@ -45,6 +45,7 @@
|
|||
blender.enable = true;
|
||||
kdenlive.enable = true;
|
||||
lmms.enable = true;
|
||||
mpv.enable = true;
|
||||
};
|
||||
};
|
||||
hardware = {
|
||||
|
|
|
@ -5,5 +5,6 @@
|
|||
./blender
|
||||
./kdenlive
|
||||
./lmms
|
||||
./mpv
|
||||
];
|
||||
}
|
||||
|
|
25
modules/desktop/media/mpv/default.nix
Normal file
25
modules/desktop/media/mpv/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ outputs, options, config, lib, pkgs, ...}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.desktop.media.mpv;
|
||||
in
|
||||
{
|
||||
options.modules.desktop.media.mpv = {
|
||||
enable = mkEnableOption false;
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
users.users.sako.packages = with pkgs; [
|
||||
mpv
|
||||
];
|
||||
|
||||
home-manager.users.sako = { pkgs, ... }: {
|
||||
xdg.configFile = {
|
||||
mpv = {
|
||||
source = ../../../../config/mpv;
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue