mopidy attempt
This commit is contained in:
parent
2329d67d16
commit
d58e5fc00c
|
@ -8,7 +8,7 @@
|
|||
./frobar/module.nix
|
||||
./i3.nix
|
||||
./lock
|
||||
./mpd
|
||||
./mopidy
|
||||
./presentation
|
||||
./redness
|
||||
./screenshots
|
||||
|
|
|
@ -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 = {
|
Loading…
Reference in a new issue