roles/graphical & roles/media-client: move mpv + add cdda support + setup x11/wayland support in place

Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
This commit is contained in:
Ivan Bushchik 2024-01-01 16:32:29 +03:00
parent d3eadb632d
commit 51659cddc4
No known key found for this signature in database
GPG key ID: 2F16FBF3262E090C
2 changed files with 20 additions and 2 deletions

View file

@ -12,7 +12,6 @@ in {
alacritty alacritty
pavucontrol pavucontrol
bottom bottom
mpv
glib glib
ffmpeg ffmpeg
cinnamon.nemo cinnamon.nemo

View file

@ -5,6 +5,25 @@ in {
options.my.roles.media-client.enable = options.my.roles.media-client.enable =
lib.mkEnableOption "Enable media players, downloaders, etc."; lib.mkEnableOption "Enable media players, downloaders, etc.";
config = lib.mkIf (cfg.enable) { config = lib.mkIf (cfg.enable) {
environment.systemPackages = with pkgs; [ vlc yt-dlp ffmpeg ]; nixpkgs.overlays = [
(self: super: {
mpv = super.wrapMpv (super.mpv.unwrapped.override {
cddaSupport = true;
# No pulse today
pulseSupport = false;
pipewireSupport = true;
screenSaverSupport = false;
# MATE only
x11Support = config.my.roles.graphical.basic.enable;
# Sway only
waylandSupport = config.my.roles.graphical.enable;
javascriptSupport = false;
}) { };
})
];
environment.systemPackages = with pkgs; [ vlc yt-dlp ffmpeg mpv ];
# Add support for CD/DVD/BD drives
boot.initrd.availableKernelModules = [ "sr_mod" ];
}; };
} }