diff options
author | Ben Sima <ben@bsima.me> | 2021-04-26 14:46:14 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2021-04-26 15:29:55 -0400 |
commit | d2b49d5dda113d42a4d221be36ee3298c43350d3 (patch) | |
tree | c27d548241f14e73664c853f7fe7b603e1f0c84d /linux.nix | |
parent | e701ba92abdc62273d79fc358e8541ecc16d7d28 (diff) |
add mpd service and {nc,}mpc client
Diffstat (limited to 'linux.nix')
-rw-r--r-- | linux.nix | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -179,6 +179,25 @@ in postExec = "${pkgs.notmuch}/bin/notmuch new"; }; + 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" + } + ''; + }; + polybar = { # https://github.com/0x746866/dots/blob/master/polybar/config enable = true; @@ -417,6 +436,9 @@ in systemd.user = { services = { "gpg-refresh".Service.ExecStart = "${pkgs.gnupg}/bin/gpg --refresh"; + # make it the same as 'systemctl show mpd | grep LimitMEMLOCK" + # might not be necessary? + #mpd.Service.LimitMEMLOCK = "2085444096"; }; timers = { "gpg-refresh" = { |