Browse Source

enable MPD on pulsebert

Courtesy of vater.
container/radius
Stefan Majewsky 1 year ago
parent
commit
5db3a5809d
1 changed files with 25 additions and 2 deletions
  1. 25
    2
      nix/pulsebert/configuration.nix

+ 25
- 2
nix/pulsebert/configuration.nix View File

@@ -42,6 +42,13 @@
42 42
     usbutils
43 43
     tmux
44 44
     vim
45
+    git
46
+    # NCurses Music Player Client (Plus Plus)
47
+    # a commandline front-end client for mpd
48
+    # 2019-01-21 mag vater gern gleich einen schoenen lokalen Verwaltung fuer MPD haben.
49
+#    ncmpcpp
50
+    home-manager
51
+    mumble
45 52
   ];
46 53
 
47 54
   # Some programs need SUID wrappers, can be configured further or are
@@ -54,9 +61,14 @@
54 61
   # Enable the OpenSSH daemon.
55 62
   services.openssh.enable = true;
56 63
 
64
+  # X11 Forwarding for mumble...
65
+  programs.ssh.forwardX11 = true;
66
+  services.openssh.forwardX11 = true;
67
+
57 68
   # Open ports in the firewall.
58 69
   networking.firewall.allowedTCPPorts = [
59 70
     4713 # PulseAudio
71
+    631 # cups
60 72
   ];
61 73
   # networking.firewall.allowedUDPPorts = [ ... ];
62 74
   # Or disable the firewall altogether.
@@ -70,9 +82,15 @@
70 82
   hardware.pulseaudio.enable = true;
71 83
   # PulseAudio as-a-Service
72 84
   hardware.pulseaudio.systemWide = true;
73
-  hardware.pulseaudio.tcp.anonymousClients.allowedIpRanges = [ "172.22.99.0/24" "127.0.0.0/8" "::1/128" ];
85
+  hardware.pulseaudio.tcp.anonymousClients.allowedIpRanges = [
86
+    "127.0.0.0/8" "::1/128"
87
+    "172.22.99.0/24" "2a02:8106:208:5201:58::/64"
88
+  ];
74 89
   hardware.pulseaudio.tcp.enable = true;
75 90
   hardware.pulseaudio.zeroconf.publish.enable = true;
91
+  # vater hoerte, dass menschen im space gern mpd fuer das abspielen von musik erwarten wuerden
92
+  ####	https://nixos.org/nixos/options.html#services.mpd.enable
93
+  services.mpd.enable=true;
76 94
 
77 95
   # tell Avahi to publish CUPS and PulseAudio
78 96
   services.avahi = {
@@ -93,9 +111,14 @@
93 111
   # services.xserver.displayManager.sddm.enable = true;
94 112
   # services.xserver.desktopManager.plasma5.enable = true;
95 113
 
114
+  security.sudo = {
115
+    enable = true;
116
+    wheelNeedsPassword = false;
117
+  };
118
+
96 119
   # Define a user account. Don't forget to set a password with ‘passwd’.
97 120
   users.users."k-ot" = {
98
-    extraGroups = ["audio"]; # allow k-ot to use PulseAudio
121
+    extraGroups = ["audio" "wheel"]; # allow k-ot to use PulseAudio
99 122
     isNormalUser = true;
100 123
     uid = 1000;
101 124
   };

Loading…
Cancel
Save