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
./i3.nix
./lock
./mpd
./mopidy
./presentation
./redness
./screenshots

View file

@ -3,24 +3,29 @@
config = lib.mkIf config.frogeye.desktop.xorg {
home = {
packages = with pkgs; [
ashuffle
mpc-cli
vimpc
ashuffle # Probs don't work
mpc-cli # mpc add completion only works partially
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;
network = {
listenAddress = "0.0.0.0"; # Can be controlled remotely, determined with firewall
startWhenNeeded = true;
extensionPackages = with pkgs; [
mopidy-mpd # Compat
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 = {
configFile = {