This commit is contained in:
Nox Sluijtman 2023-02-21 10:02:51 +01:00
parent c2ce6c19f9
commit 244a412371
2 changed files with 16 additions and 8 deletions

View file

@ -4,6 +4,7 @@ date: "2022-11-06T22:11:10+01:00"
author: "$HUMANOID"
tags: ["nix", "linux"]
description: "Ramble about setting up MPD + Icecast on NixOS"
draft: True
---
# Introduction
@ -57,7 +58,7 @@ The first thing you'll want to do is enable the MPD service:
{ config, pkgs, ... }: {
services.mpd = {
enable = true;
...
...
```
@ -110,7 +111,6 @@ section.
{{< start-details summary="Example PulseAudio configuration I have on my laptop" >}}
```conf
...
audio_output {
type "pulse"
name "Pulse output"
@ -120,7 +120,6 @@ audio_output {
replaygain "album"
volume_normalization "no"
}
...
```
{{< end-details >}}
@ -142,12 +141,24 @@ I have my drives listed in `/etc/nixos/drives.nix` and import that in my
# Setting up Icecast2
The next step is to set up Icecast2. Same as with MPD, the first thing you'll
want to do is enable it:
want to do is enable it...
```nix
...
services.icecast = {
enable = true;
...
```
... then add at least the necessary lines of configuration...
```nix
...
hostname = "hostname:8000";
listen.port = 8000;
admin.password = "it gives me a headache that I can't get Nix to read this from a file, I am probably too much of an idiot figure out how this works";
...
```
```nix
extraConf = ''
<location>Floating around in an example configuration snippet on the internet</location>
<admin>icemaster@localhost</admin>
@ -167,9 +178,6 @@ want to do is enable it:
<burst-size>65535</burst-size>
</limits>
'';
hostname = "hostname:8000";
listen.port = 8000;
admin.password = "it gives me a headache that I can't get Nix to read this from a file";
};
}
```

@ -1 +1 @@
Subproject commit 5251fa45a81337e7cf0a4d61f373d31d6c1ed1b7
Subproject commit 78d0d2d803187c7c26f36310e2692c4d7491ef7a