nixos: add mount check for home directory
PR #1271
(cherry picked from commit 5ba71ef91f
)
This commit is contained in:
parent
96fcf3b017
commit
3797004203
|
@ -98,6 +98,8 @@ in {
|
||||||
|
|
||||||
environment = serviceEnvironment;
|
environment = serviceEnvironment;
|
||||||
|
|
||||||
|
unitConfig = { RequiresMountsFor = usercfg.home.homeDirectory; };
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
User = usercfg.home.username;
|
User = usercfg.home.username;
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
|
|
Loading…
Reference in a new issue