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