2019-04-13 18:24:44 +02:00
|
|
|
|
# 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, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
2019-11-11 17:17:08 +01:00
|
|
|
|
imports = [
|
|
|
|
|
../../../lib/lxc-container.nix
|
2019-04-13 18:24:44 +02:00
|
|
|
|
../../../lib/shared.nix
|
|
|
|
|
../../../lib/admins.nix
|
2020-01-20 14:24:31 +01:00
|
|
|
|
../../../lib
|
2019-04-13 18:24:44 +02:00
|
|
|
|
];
|
|
|
|
|
|
2020-01-20 14:24:31 +01:00
|
|
|
|
c3d2 = {
|
|
|
|
|
isInHq = true;
|
|
|
|
|
enableHail = true;
|
|
|
|
|
};
|
2019-04-13 18:52:53 +02:00
|
|
|
|
|
2020-01-20 14:24:31 +01:00
|
|
|
|
environment.systemPackages = with pkgs; [ ncmpcpp ];
|
|
|
|
|
|
|
|
|
|
fileSystems."/mnt/music" = {
|
|
|
|
|
fsType = "nfs";
|
|
|
|
|
device = "172.22.99.10:/mnt/zroot/storage/rpool/Music";
|
|
|
|
|
};
|
2019-04-13 18:24:44 +02:00
|
|
|
|
|
|
|
|
|
networking.hostName = "mpd-index";
|
|
|
|
|
|
2019-04-13 20:12:34 +02:00
|
|
|
|
services.openssh = {
|
|
|
|
|
enable = true;
|
|
|
|
|
permitRootLogin = "yes";
|
|
|
|
|
};
|
|
|
|
|
|
2019-04-13 18:24:44 +02:00
|
|
|
|
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?
|
|
|
|
|
|
|
|
|
|
}
|