configurations of hq services
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configuration.nix 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Edit this configuration file to define what should be installed on
  2. # your system. Help is available in the configuration.nix(5) man page
  3. # and in the NixOS manual (accessible by running ‘nixos-help’).
  4. { config, pkgs, lib, ... }:
  5. {
  6. imports =
  7. [ ../../../lib/lxc-container.nix
  8. ../../../lib/shared.nix
  9. ../../../lib/admins.nix
  10. ];
  11. environment.systemPackages = with pkgs; [
  12. ncmpcpp
  13. ];
  14. fileSystems."/mnt/music" = { fsType = "nfs"; device = "172.22.99.10:/mnt/zroot/storage/rpool/Music"; };
  15. networking.hostName = "mpd-index";
  16. services.mpd = {
  17. enable = true;
  18. user = "mpd";
  19. group = "audio";
  20. network = {
  21. listenAddress = "any";
  22. port = 6600;
  23. };
  24. musicDirectory = "/mnt/music";
  25. extraConfig = ''
  26. default_permissions "read,add,control,admin"
  27. input {
  28. plugin "curl"
  29. }
  30. audio_output {
  31. type "null"
  32. name "My Null Output"
  33. }
  34. filesystem_charset "UTF-8"
  35. '';
  36. };
  37. system.stateVersion = "18.09"; # Did you read the comment?
  38. }