Merge pull request #132624 from lovesegfault/hqplayerd-fixes
nixos/hqplayerd: set HOME to path in state directory
This commit is contained in:
commit
6b3d1790de
@ -102,6 +102,7 @@ in
|
|||||||
tmpfiles.rules = [
|
tmpfiles.rules = [
|
||||||
"d ${configDir} 0755 ${cfg.user} ${cfg.group} - -"
|
"d ${configDir} 0755 ${cfg.user} ${cfg.group} - -"
|
||||||
"d ${stateDir} 0755 ${cfg.user} ${cfg.group} - -"
|
"d ${stateDir} 0755 ${cfg.user} ${cfg.group} - -"
|
||||||
|
"d ${stateDir}/home 0755 ${cfg.user} ${cfg.group} - -"
|
||||||
];
|
];
|
||||||
|
|
||||||
services.hqplayerd = {
|
services.hqplayerd = {
|
||||||
@ -110,6 +111,8 @@ in
|
|||||||
requires = [ "network-online.target" "sound.target" "systemd-udev-settle.service" ];
|
requires = [ "network-online.target" "sound.target" "systemd-udev-settle.service" ];
|
||||||
after = [ "network-online.target" "sound.target" "systemd-udev-settle.service" "local-fs.target" "remote-fs.target" "systemd-tmpfiles-setup.service" ];
|
after = [ "network-online.target" "sound.target" "systemd-udev-settle.service" "local-fs.target" "remote-fs.target" "systemd-tmpfiles-setup.service" ];
|
||||||
|
|
||||||
|
environment.HOME = "${stateDir}/home";
|
||||||
|
|
||||||
unitConfig.ConditionPathExists = [ configDir stateDir ];
|
unitConfig.ConditionPathExists = [ configDir stateDir ];
|
||||||
|
|
||||||
preStart =
|
preStart =
|
||||||
|
Loading…
Reference in New Issue
Block a user