From 46031af2a87dfd13b3c57af6d26fe01a39ecf08b Mon Sep 17 00:00:00 2001 From: niten Date: Wed, 19 Jun 2024 14:37:50 -0700 Subject: [PATCH] Ensure home directory exists --- paris-container.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/paris-container.nix b/paris-container.nix index 4ed0fda..379ed23 100644 --- a/paris-container.nix +++ b/paris-container.nix @@ -243,8 +243,11 @@ in { environmentFiles = [ hostSecrets.parisLdapEnv.target-file ]; }; - systemd.services."container@paris".after = - optional (!isNull cfg.kerberos) config.fudo.secrets.secret-target; + systemd = { + tmpfiles.rules = [ "d ${cfg.state-directory}/home 0700 - - - -" ]; + services."container@paris".after = + optional (!isNull cfg.kerberos) config.fudo.secrets.secret-target; + }; containers.paris = { autoStart = true;