Fix the liquidsoap stuff
This commit is contained in:
parent
bb5250fef5
commit
bf138bcd93
|
@ -3,7 +3,7 @@
|
|||
services.ddclient = {
|
||||
enable = config.system.server.enable;
|
||||
protocol = "cloudflare";
|
||||
use = "web, web=https://ipinfo.io/ip";
|
||||
usev4 = "web, web=https://ipinfo.io/ip";
|
||||
zone = "${config.domains.p1}";
|
||||
username = "token";
|
||||
passwordFile = "${pkgs.writeText "cloudflareapikey" config.secrets.flareApiKey}";
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
services = lib.mkIf config.system.server.enable {
|
||||
samba = {
|
||||
enable = true;
|
||||
securityType = "user";
|
||||
openFirewall = true;
|
||||
settings = {
|
||||
global = {
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
services.liquidsoap.streams = lib.mkIf config.services.icecast.enable {
|
||||
jimbops = pkgs.writeText "liquidstream1" ''
|
||||
config = lib.mkIf config.services.icecast.enable {
|
||||
services.liquidsoap.streams = {
|
||||
jimbops = pkgs.writeText "jimbops" ''
|
||||
settings.log.stdout.set(true)
|
||||
settings.init.allow_root.set(true)
|
||||
settings.scheduler.fast_queues.set(2)
|
||||
|
@ -16,11 +17,9 @@
|
|||
password="${config.secrets.castSourcePass}",
|
||||
encoding = "UTF-8",
|
||||
|
||||
radio="JimBops Radio",
|
||||
genre = "Anything",
|
||||
name="JimBops Radio",
|
||||
genre="Anything",
|
||||
description="Music gathered by me, Jimbo.",
|
||||
website="https://icecast.${config.domains.p1}",
|
||||
url="https://icecast.${config.domains.p1}/jimbops.opus",
|
||||
mount="jimbops.opus",
|
||||
icy_metadata=["artist", "title"],
|
||||
public=true,
|
||||
|
@ -29,4 +28,11 @@
|
|||
)
|
||||
'';
|
||||
};
|
||||
|
||||
# Avoid the most stupid error imaginable
|
||||
systemd.services.jimbops = {
|
||||
after = [ "network-online.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
config = lib.mkIf config.services.icecast.enable {
|
||||
services.liquidsoap.streams = lib.mkIf config.services.icecast.enable {
|
||||
jimscrapped = pkgs.writeText "liquidstream2" ''
|
||||
jimscrapped = pkgs.writeText "jimscrapped" ''
|
||||
settings.log.stdout.set(true)
|
||||
settings.init.allow_root.set(true)
|
||||
settings.scheduler.fast_queues.set(2)
|
||||
|
@ -16,11 +17,9 @@
|
|||
password="${config.secrets.castSourcePass}",
|
||||
encoding = "UTF-8",
|
||||
|
||||
radio="Jimbo's Scrap",
|
||||
genre = "Scrapped",
|
||||
name="Jimbo's Scrap",
|
||||
genre="Scrapped",
|
||||
description="Music canned from the main radio.",
|
||||
website="https://icecast.${config.domains.p1}",
|
||||
url="https://icecast.${config.domains.p1}/jimscrapped.opus",
|
||||
mount="jimscrapped.opus",
|
||||
icy_metadata=["artist", "title"],
|
||||
public=true,
|
||||
|
@ -29,4 +28,11 @@
|
|||
)
|
||||
'';
|
||||
};
|
||||
|
||||
# Avoid the most stupid error imaginable
|
||||
systemd.services.jimscrapped = {
|
||||
after = [ "network-online.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue