configure zsh and fix mpd

This commit is contained in:
tristan 2024-01-06 05:41:44 +00:00
parent fb92731190
commit cd8efd23f3
5 changed files with 45 additions and 25 deletions

View file

@ -6,6 +6,8 @@
}:
with lib; let
cfg = config.roles.mpd;
terminal = config.programs.terminal;
termcmd = "${terminal}/bin/${terminal.pname}";
in {
options.roles.mpd = {
enable = mkEnableOption "setup mpd client";
@ -48,6 +50,16 @@ in {
mpd.host = cfg.host;
};
programs.waybar.settings.mainBar.mpd.server = cfg.host;
programs.scripts = [
{
name = "ncmpcpp";
text = ''
${termcmd} -e ${pkgs.ncmpcpp}/bin/ncmpcpp
'';
hotkeys = [{key = "M";}];
install = false;
}
];
systemd.user.services = {
snapclient = {
Unit = {