Compare commits
	
		
			2 Commits
		
	
	
		
			d3798b201a
			...
			af3984498c
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | af3984498c | ||
|   | 65605dbf57 | 
| @ -47,6 +47,7 @@ | ||||
|     users.users.mixer = { | ||||
|       isNormalUser = true; | ||||
|       group = "mixer"; | ||||
|       linger = true; | ||||
|       extraGroups = [ "systemd-journal" ]; | ||||
|       openssh.authorizedKeys.keys = [ | ||||
|         "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKKxoQSxfYqf9ITN8Fhckk8WbY4dwtBAXOhC9jxihJvq jan@bulthuis.dev" | ||||
|  | ||||
| @ -22,19 +22,20 @@ in | ||||
|     users.groups.mixer = { }; | ||||
| 
 | ||||
|     # Spotifyd service | ||||
|     systemd.services.spotifyd = { | ||||
|       description = "Spotifyd Service"; | ||||
|       wantedBy = [ "multi-user.target" ]; | ||||
|     systemd.user.services.spotifyd = { | ||||
|       description = "SpotifyD Service"; | ||||
|       wantedBy = [ "default.target" ]; | ||||
|       after = [ | ||||
|         "network.target" | ||||
|         "sound.target" | ||||
|       ]; | ||||
|       unitConfig = { | ||||
|         ConditionUser = "mixer"; # TODO: Allow user configuration | ||||
|       }; | ||||
|       serviceConfig = { | ||||
|         ExecStart = "${pkgs.spotifyd}/bin/spotifyd --no-daemon --config-path /etc/spotifyd/spotifyd.conf"; | ||||
|         Restart = "always"; | ||||
|         RestartSec = 5; | ||||
|         User = "mixer"; | ||||
|         Group = "mixer"; | ||||
|       }; | ||||
|     }; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user