migrate to clan
This commit is contained in:
parent
f817ba1405
commit
f1ec59c3af
60 changed files with 225 additions and 391 deletions
27
machines/genepi/mpd.nix
Normal file
27
machines/genepi/mpd.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
services.mpd = {
|
||||
enable = true;
|
||||
musicDirectory = "/home/rpqt/Media/Music";
|
||||
extraConfig = ''
|
||||
audio_output {
|
||||
type "pulse"
|
||||
name "Pulse Audio"
|
||||
}
|
||||
'';
|
||||
|
||||
network.listenAddress = "any";
|
||||
};
|
||||
|
||||
services.pulseaudio.enable = true;
|
||||
|
||||
# Workaround: run PulseAudio system-wide so that the mpd user can access it
|
||||
services.pulseaudio.systemWide = true;
|
||||
|
||||
# Fixes the stutter when changing volume (found this randomly)
|
||||
services.pulseaudio.daemon.config.flat-volumes = "no";
|
||||
|
||||
users.users.${config.services.mpd.user}.extraGroups = [ "pulse-access" ];
|
||||
|
||||
users.users.rpqt.homeMode = "755";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue