diff options
author | Ben Sima <ben@bsima.me> | 2022-08-02 16:12:38 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2022-08-02 16:14:02 -0400 |
commit | 4d0b463e00e15d68ea0c39662b3dd0cf068b5a42 (patch) | |
tree | 09663f3f75c7b8f740ba606931208970c1294bd1 /profiles/workshop.nix | |
parent | e4a1816f5923d5ca541910486c699095af58d7ce (diff) |
Move mpd server to workshop only
Diffstat (limited to 'profiles/workshop.nix')
-rw-r--r-- | profiles/workshop.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/profiles/workshop.nix b/profiles/workshop.nix index 783d75d..311aeab 100644 --- a/profiles/workshop.nix +++ b/profiles/workshop.nix @@ -8,6 +8,7 @@ ../lib/packages.nix ../lib/emacs.nix ]; + home = { sessionVariables = { GPGID = "C184FB3920E3510D"; @@ -16,9 +17,13 @@ weechat ]; }; + services.polybar.config."bar/top".monitor = lib.mkForce "HDMI-1"; + services.random-background.enable = lib.mkForce true; + programs.git.signing.signByDefault = true; + systemd.user.services = { "shop-music".Service = { RestartSec = "3s"; @@ -26,4 +31,25 @@ ExecStart = "${pkgs.mplayer}/bin/mplayer http://localhost:8097"; }; }; + + services.mpd = { + enable = true; + musicDirectory = "/mnt/campbell/ben/music"; + network = { + listenAddress = "0.0.0.0"; + port = 6600; + }; + extraConfig = '' + audio_output { + type "httpd" + name "HTTP Stream" + encoder "vorbis" + port "8097" + quality "7.0" + format "44100:16:2" + } + ''; + }; + + } |