You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nix-config/hosts/containers/mpd-index/configuration.nix

50 lines
1.0 KiB
Nix

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, lib, ... }:
{
imports =
[ ../../../lib/lxc-container.nix
../../../lib/shared.nix
../../../lib/admins.nix
];
environment.systemPackages = with pkgs; [
ncmpcpp
];
fileSystems."/mnt/music" = { fsType = "nfs"; device = "172.22.99.10:/mnt/zroot/storage/rpool/Music"; };
networking.hostName = "mpd-index";
services.mpd = {
enable = true;
user = "mpd";
group = "audio";
network = {
listenAddress = "any";
port = 6600;
};
musicDirectory = "/mnt/music";
extraConfig = ''
default_permissions "read,add,control,admin"
input {
plugin "curl"
}
audio_output {
type "null"
name "My Null Output"
}
filesystem_charset "UTF-8"
'';
};
system.stateVersion = "18.09"; # Did you read the comment?
}