From 37970042034cf4cf093886d0a047d9d46fbdd2bb Mon Sep 17 00:00:00 2001 From: Finn Behrens Date: Mon, 25 May 2020 11:16:57 +0200 Subject: [PATCH] nixos: add mount check for home directory PR #1271 (cherry picked from commit 5ba71ef91f3863508a61f5a7feba567c832a225e) --- nixos/default.nix | 2 ++ 1 file changed, 2 insertions(+) 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";