Add media programs (mpd/mpc and mpv)

This commit is contained in:
Evie Litherland-Smith 2023-09-11 07:48:40 +01:00
parent aa30dd712b
commit 189a13dbc5
2 changed files with 31 additions and 9 deletions

View file

@ -70,17 +70,17 @@
[ ./services/sshd/default.nix ./services/syncthing/default.nix ]; [ ./services/sshd/default.nix ./services/syncthing/default.nix ];
homeModules = [ homeModules = [
./home/accounts/service.nix ./home/accounts/service.nix
./home/pass/service.nix
./home/git/default.nix
./home/ssh/default.nix
./home/tui/default.nix
./home/tmux/default.nix
./home/hyprland/default.nix
./home/alacritty/default.nix ./home/alacritty/default.nix
./home/firefox/default.nix
./home/zathura/default.nix
./home/emacs/server.nix ./home/emacs/server.nix
./home/neovim/default.nix ./home/firefox/default.nix
./home/git/default.nix
./home/hyprland/default.nix
./home/media/default.nix
./home/pass/service.nix
./home/ssh/default.nix
./home/tmux/default.nix
./home/tui/default.nix
./home/zathura/default.nix
]; ];
stateVersion = "23.05"; stateVersion = "23.05";
}; };

22
home/media/default.nix Normal file
View file

@ -0,0 +1,22 @@
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; [ mpc ];
services.mpd = {
enable = true;
network.startWhenNeeded = true;
};
programs.mpv = {
enable = true;
scripts = with pkgs.mpvScripts; [
mpris
autoload
thumbfast
thumbnail
visualizer
sponsorblock
quality-menu
webtorrent-mpv-hook
];
};
}