diff --git a/nixos/default.nix b/nixos/default.nix index 4f7f1868..62dcfc52 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -98,6 +98,8 @@ in { environment = serviceEnvironment; + unitConfig = { RequiresMountsFor = usercfg.home.homeDirectory; }; + serviceConfig = { User = usercfg.home.username; Type = "oneshot";