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 989B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. fileSystems."/mnt/music" = { fsType = "nfs"; device = "172.22.99.10:/mnt/zroot/storage/rpool/Music"; };
  12. networking.hostName = "mpd-index";
  13. services.mpd = {
  14. enable = true;
  15. user = "mpd";
  16. group = "audio";
  17. network = {
  18. listenAddress = "any";
  19. port = 6600;
  20. };
  21. musicDirectory = "/mnt/music";
  22. extraConfig = ''
  23. default_permissions "read,add,control,admin"
  24. input {
  25. plugin "curl"
  26. }
  27. audio_output {
  28. type "null"
  29. name "My Null Output"
  30. }
  31. filesystem_charset "UTF-8"
  32. '';
  33. };
  34. system.stateVersion = "18.09"; # Did you read the comment?
  35. }