fix: music working

This commit is contained in:
2026-01-21 07:59:38 -05:00
parent 2adf1b010b
commit 5eb2d1c3e2
8 changed files with 37 additions and 33 deletions

View File

@@ -1,27 +0,0 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
mpc
ncmpcpp
];
services.mpd = {
enable = true;
musicDirectory = "/home/max/media/music";
user = "max";
extraConfig = ''
audio_output {
type "pipewire"
name "Pipewire Ouput"
}
'';
};
systemd = {
services = {
mpd.environment = {
XDG_RUNTIME_DIR = "/run/user/1001";
};
};
};
}

View File

@@ -14,7 +14,6 @@
../common/optional/locale.nix
../common/optional/email.nix
../common/optional/proton.nix
../common/optional/music.nix
];
# Use the systemd-boot EFI boot loader.

View File

@@ -14,6 +14,7 @@
./home/nvim.nix
./home/terminal.nix
./home/zathura.nix
./home/music.nix
];
gtk = {

23
host/max/home/music.nix Normal file
View File

@@ -0,0 +1,23 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
mpc
];
services.mpd = {
enable = true;
musicDirectory = "/home/max/media/music";
};
services.mpd-mpris.enable = true;
programs.ncmpcpp = {
enable = true;
bindings = [
{ key = "j"; command = "scroll_down"; }
{ key = "k"; command = "scroll_up"; }
{ key = "J"; command = [ "select_item" "scroll_down" ]; }
{ key = "K"; command = [ "select_item" "scroll_up" ]; }
];
};
}

View File

@@ -49,6 +49,7 @@
initContent = ''
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
zstyle ':completion:*' menu select
fzf-project() {
selected=$(find ~/dev -mindepth 2 -maxdepth 2 | sed 's|/home/max/dev/||' | fzf --delimiter '/' --nth 2)