Compare commits
	
		
			2 Commits
		
	
	
		
			d3798b201a
			...
			af3984498c
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | af3984498c | ||
|   | 65605dbf57 | 
| @ -47,6 +47,7 @@ | |||||||
|     users.users.mixer = { |     users.users.mixer = { | ||||||
|       isNormalUser = true; |       isNormalUser = true; | ||||||
|       group = "mixer"; |       group = "mixer"; | ||||||
|  |       linger = true; | ||||||
|       extraGroups = [ "systemd-journal" ]; |       extraGroups = [ "systemd-journal" ]; | ||||||
|       openssh.authorizedKeys.keys = [ |       openssh.authorizedKeys.keys = [ | ||||||
|         "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKKxoQSxfYqf9ITN8Fhckk8WbY4dwtBAXOhC9jxihJvq jan@bulthuis.dev" |         "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKKxoQSxfYqf9ITN8Fhckk8WbY4dwtBAXOhC9jxihJvq jan@bulthuis.dev" | ||||||
|  | |||||||
| @ -22,19 +22,20 @@ in | |||||||
|     users.groups.mixer = { }; |     users.groups.mixer = { }; | ||||||
| 
 | 
 | ||||||
|     # Spotifyd service |     # Spotifyd service | ||||||
|     systemd.services.spotifyd = { |     systemd.user.services.spotifyd = { | ||||||
|       description = "Spotifyd Service"; |       description = "SpotifyD Service"; | ||||||
|       wantedBy = [ "multi-user.target" ]; |       wantedBy = [ "default.target" ]; | ||||||
|       after = [ |       after = [ | ||||||
|         "network.target" |         "network.target" | ||||||
|         "sound.target" |         "sound.target" | ||||||
|       ]; |       ]; | ||||||
|  |       unitConfig = { | ||||||
|  |         ConditionUser = "mixer"; # TODO: Allow user configuration | ||||||
|  |       }; | ||||||
|       serviceConfig = { |       serviceConfig = { | ||||||
|         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 = "mixer"; |  | ||||||
|         Group = "mixer"; |  | ||||||
|       }; |       }; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user