Changed spotifyd user to mixer, disabled mpris
This commit is contained in:
		
							parent
							
								
									78077638fc
								
							
						
					
					
						commit
						74f62b34cf
					
				| @ -16,11 +16,10 @@ in | |||||||
| 
 | 
 | ||||||
|   config = mkIf cfg.enable { |   config = mkIf cfg.enable { | ||||||
|     # User for spotifyd |     # User for spotifyd | ||||||
|     users.users.spotifyd = { |     users.users.mixer = { | ||||||
|       isSystemUser = true; |       group = "mixer"; | ||||||
|       group = "spotifyd"; |  | ||||||
|     }; |     }; | ||||||
|     users.groups.spotifyd = { }; |     users.groups.mixer = { }; | ||||||
| 
 | 
 | ||||||
|     # Spotifyd service |     # Spotifyd service | ||||||
|     systemd.services.spotifyd = { |     systemd.services.spotifyd = { | ||||||
| @ -34,8 +33,8 @@ in | |||||||
|         ExecStart = "${pkgs.spotifyd}/bin/spotifyd --no-daemon --config-path /etc/spotifyd/spotifyd.conf"; |         ExecStart = "${pkgs.spotifyd}/bin/spotifyd --no-daemon --config-path /etc/spotifyd/spotifyd.conf"; | ||||||
|         Restart = "always"; |         Restart = "always"; | ||||||
|         RestartSec = 5; |         RestartSec = 5; | ||||||
|         User = "spotifyd"; |         User = "mixer"; | ||||||
|         Group = "spotifyd"; |         Group = "mixer"; | ||||||
|       }; |       }; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
| @ -44,8 +43,8 @@ in | |||||||
|       "spotifyd/spotifyd.conf" = { |       "spotifyd/spotifyd.conf" = { | ||||||
|         source = ./spotifyd.conf; |         source = ./spotifyd.conf; | ||||||
|         mode = "0444"; |         mode = "0444"; | ||||||
|         user = "spotifyd"; |         user = "mixer"; # TODO: Make user configurable | ||||||
|         group = "spotifyd"; |         group = "mixer"; | ||||||
|       }; |       }; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -32,7 +32,7 @@ device_type = "a_v_r" | |||||||
| # and expose MPRIS controls. When running headless, without the session bus, | # and expose MPRIS controls. When running headless, without the session bus, | ||||||
| # you should set this to false, to avoid errors. If you still want to use MPRIS, | # you should set this to false, to avoid errors. If you still want to use MPRIS, | ||||||
| # have a look at the `dbus_type` option. | # have a look at the `dbus_type` option. | ||||||
| #use_mpris = true | use_mpris = false | ||||||
| 
 | 
 | ||||||
| # The bus to bind to with the MPRIS interface. | # The bus to bind to with the MPRIS interface. | ||||||
| # Possible values: "session", "system" | # Possible values: "session", "system" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jan-Bulthuis
						Jan-Bulthuis