diff --git a/modules/applications/mopidy.nix b/modules/applications/mopidy.nix new file mode 100644 index 0000000..7fde654 --- /dev/null +++ b/modules/applications/mopidy.nix @@ -0,0 +1,32 @@ +{ pkgs, ... }: { + services.mopidy = { + enable = true; + # dataDir = ""; + configuration = '' + [audio] + output = pulsesink server=127.0.0.1:8888 + + [mpd] + enabled = true + hostname = 127.0.0.1 + port = 6600 + + [local] + media_dir = /home/alukard/Music + ''; + extensionPackages = with pkgs; [ + mopidy-local + # mopidy-mpris + mopidy-mpd + ]; + }; + + # systemd.services.mopidy-scan = { + # description = "mopidy local files cleaner"; + # serviceConfig = { + # ExecStart = "${mopidyEnv}/bin/mopidy local clear"; + # User = "mopidy"; + # Type = "oneshot"; + # }; + # }; +} \ No newline at end of file diff --git a/modules/applications/ncmpcpp.nix b/modules/applications/ncmpcpp.nix new file mode 100644 index 0000000..e27ffd4 --- /dev/null +++ b/modules/applications/ncmpcpp.nix @@ -0,0 +1,11 @@ +{ pkgs, ... }: { + home-manager.users.alukard.programs.ncmpcpp = { + enable = true; + # mpdMusicDir = "$HOME/Music"; + settings = { + mpd_host = "127.0.0.1"; + mpd_port = 6600; + mpd_music_dir = "$HOME/Music"; + }; + }; +} \ No newline at end of file