From 189a13dbc5ade2bbb424ebcc828122fe11a35338 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 11 Sep 2023 07:48:40 +0100 Subject: [PATCH] Add media programs (mpd/mpc and mpv) --- flake.nix | 18 +++++++++--------- home/media/default.nix | 22 ++++++++++++++++++++++ 2 files changed, 31 insertions(+), 9 deletions(-) create mode 100644 home/media/default.nix diff --git a/flake.nix b/flake.nix index 853b9296..f9013af3 100644 --- a/flake.nix +++ b/flake.nix @@ -70,17 +70,17 @@ [ ./services/sshd/default.nix ./services/syncthing/default.nix ]; homeModules = [ ./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/firefox/default.nix - ./home/zathura/default.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"; }; diff --git a/home/media/default.nix b/home/media/default.nix new file mode 100644 index 00000000..3a7634df --- /dev/null +++ b/home/media/default.nix @@ -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 + ]; + }; +}