mirror of
https://github.com/ivabus/nixos
synced 2024-11-22 00:15:06 +03:00
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:
parent
d3eadb632d
commit
51659cddc4
2 changed files with 20 additions and 2 deletions
|
@ -12,7 +12,6 @@ in {
|
|||
alacritty
|
||||
pavucontrol
|
||||
bottom
|
||||
mpv
|
||||
glib
|
||||
ffmpeg
|
||||
cinnamon.nemo
|
||||
|
|
|
@ -5,6 +5,25 @@ in {
|
|||
options.my.roles.media-client.enable =
|
||||
lib.mkEnableOption "Enable media players, downloaders, etc.";
|
||||
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" ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue