Update music path
This commit is contained in:
parent
3e7e9ce174
commit
57e11afb22
4 changed files with 15 additions and 15 deletions
|
@ -3,8 +3,8 @@
|
||||||
services.mpd = {
|
services.mpd = {
|
||||||
enable = config.home.desktop.enable;
|
enable = config.home.desktop.enable;
|
||||||
network.startWhenNeeded = true;
|
network.startWhenNeeded = true;
|
||||||
musicDirectory = "/home/${config.home.username}/KittyNFS/Music/JimBops";
|
musicDirectory = "/home/${config.home.username}/KittyNFS/Music/NixBops";
|
||||||
playlistDirectory = "/home/${config.home.username}/KittyNFS/Music/JimBops/Playlists";
|
playlistDirectory = "/home/${config.home.username}/KittyNFS/Music/NixBops/Playlists";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
audio_output {
|
audio_output {
|
||||||
type "pipewire"
|
type "pipewire"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./jimbops
|
./nixbops
|
||||||
./jimscrapped
|
./nixscrap
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
{
|
{
|
||||||
config = lib.mkIf config.services.icecast.enable {
|
config = lib.mkIf config.services.icecast.enable {
|
||||||
services.liquidsoap.streams = {
|
services.liquidsoap.streams = {
|
||||||
jimbops = pkgs.writeText "jimbops" ''
|
nixbops = pkgs.writeText "nixbops" ''
|
||||||
settings.log.stdout.set(true)
|
settings.log.stdout.set(true)
|
||||||
settings.init.allow_root.set(true)
|
settings.init.allow_root.set(true)
|
||||||
settings.scheduler.fast_queues.set(2)
|
settings.scheduler.fast_queues.set(2)
|
||||||
|
|
||||||
stream = mksafe(playlist(mode='randomize', reload=1, reload_mode="rounds", "/export/KittyNFS/Music/JimBops"))
|
stream = mksafe(playlist(mode='randomize', reload=1, reload_mode="rounds", "/export/KittyNFS/Music/NixBops"))
|
||||||
stream_fallback = fallback([stream, stream])
|
stream_fallback = fallback([stream, stream])
|
||||||
|
|
||||||
output.icecast(
|
output.icecast(
|
||||||
|
@ -17,10 +17,10 @@
|
||||||
password="${config.secrets.castSourcePass}",
|
password="${config.secrets.castSourcePass}",
|
||||||
encoding = "UTF-8",
|
encoding = "UTF-8",
|
||||||
|
|
||||||
name="JimBops Radio",
|
name="NixBops Radio",
|
||||||
genre="Anything",
|
genre="Anything",
|
||||||
description="Music gathered by me, Jimbo.",
|
description="Random collection of downloaded music.",
|
||||||
mount="jimbops.opus",
|
mount="nixbops.opus",
|
||||||
icy_metadata=["artist", "title"],
|
icy_metadata=["artist", "title"],
|
||||||
public=true,
|
public=true,
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Avoid the most stupid error imaginable
|
# Avoid the most stupid error imaginable
|
||||||
systemd.services.jimbops = {
|
systemd.services.nixbops = {
|
||||||
after = [ "network-online.target" ];
|
after = [ "network-online.target" ];
|
||||||
wants = [ "network-online.target" ];
|
wants = [ "network-online.target" ];
|
||||||
};
|
};
|
|
@ -2,12 +2,12 @@
|
||||||
{
|
{
|
||||||
config = lib.mkIf config.services.icecast.enable {
|
config = lib.mkIf config.services.icecast.enable {
|
||||||
services.liquidsoap.streams = {
|
services.liquidsoap.streams = {
|
||||||
jimscrapped = pkgs.writeText "jimscrapped" ''
|
nixscrap = pkgs.writeText "nixscrap" ''
|
||||||
settings.log.stdout.set(true)
|
settings.log.stdout.set(true)
|
||||||
settings.init.allow_root.set(true)
|
settings.init.allow_root.set(true)
|
||||||
settings.scheduler.fast_queues.set(2)
|
settings.scheduler.fast_queues.set(2)
|
||||||
|
|
||||||
stream = mksafe(playlist(mode='randomize', reload=1, reload_mode="rounds", "/export/KittyNFS/Music/JimScrapped"))
|
stream = mksafe(playlist(mode='randomize', reload=1, reload_mode="rounds", "/export/KittyNFS/Music/Scrap"))
|
||||||
stream_fallback = fallback([stream, stream])
|
stream_fallback = fallback([stream, stream])
|
||||||
|
|
||||||
output.icecast(
|
output.icecast(
|
||||||
|
@ -17,10 +17,10 @@
|
||||||
password="${config.secrets.castSourcePass}",
|
password="${config.secrets.castSourcePass}",
|
||||||
encoding = "UTF-8",
|
encoding = "UTF-8",
|
||||||
|
|
||||||
name="Jimbo's Scrap",
|
name="Nixbops Scrap",
|
||||||
genre="Scrapped",
|
genre="Scrapped",
|
||||||
description="Music canned from the main radio.",
|
description="Music canned from the main radio.",
|
||||||
mount="jimscrapped.opus",
|
mount="nixscrap.opus",
|
||||||
icy_metadata=["artist", "title"],
|
icy_metadata=["artist", "title"],
|
||||||
public=true,
|
public=true,
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Avoid the most stupid error imaginable
|
# Avoid the most stupid error imaginable
|
||||||
systemd.services.jimscrapped = {
|
systemd.services.nixscrap = {
|
||||||
after = [ "network-online.target" ];
|
after = [ "network-online.target" ];
|
||||||
wants = [ "network-online.target" ];
|
wants = [ "network-online.target" ];
|
||||||
};
|
};
|
Loading…
Add table
Reference in a new issue