mopidy attempt

This commit is contained in:
Geoffrey Frogeye 2024-07-28 23:54:22 +02:00
parent 2329d67d16
commit d58e5fc00c
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
2 changed files with 20 additions and 15 deletions

View file

@ -8,7 +8,7 @@
./frobar/module.nix ./frobar/module.nix
./i3.nix ./i3.nix
./lock ./lock
./mpd ./mopidy
./presentation ./presentation
./redness ./redness
./screenshots ./screenshots

View file

@ -3,24 +3,29 @@
config = lib.mkIf config.frogeye.desktop.xorg { config = lib.mkIf config.frogeye.desktop.xorg {
home = { home = {
packages = with pkgs; [ packages = with pkgs; [
ashuffle ashuffle # Probs don't work
mpc-cli mpc-cli # mpc add completion only works partially
vimpc vimpc # library straight up doesn't work
ncmpcpp # This one is fine but I don't know the shortcuts :(
]; ];
sessionVariables = {
MPD_PORT = "${toString config.services.mpd.network.port}";
};
}; };
services.mpd = { services.mopidy = {
enable = true; enable = true;
network = { extensionPackages = with pkgs; [
listenAddress = "0.0.0.0"; # Can be controlled remotely, determined with firewall mopidy-mpd # Compat
startWhenNeeded = true; mopidy-iris # Web UI
mopidy-local
mopidy-jellyfin
# Break in case of emergency: (I one of those cause issues, but not sure)
mopidy-youtube
mopidy-bandcamp
mopidy-soundcloud
];
settings = {
local = {
media_dir = [ "${config.home.homeDirectory}/Musiques" ];
};
}; };
extraConfig = ''
restore_paused "yes"
'';
musicDirectory = "${config.home.homeDirectory}/Musiques";
}; };
xdg = { xdg = {
configFile = { configFile = {