From ae05bdb2dd30c854a00325b558ca0f030ca9585d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 23 Dec 2022 21:03:03 +0100 Subject: [PATCH] Create new root home dir --- modules/microvm.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/microvm.nix b/modules/microvm.nix index aafc92bd..9c8965cf 100644 --- a/modules/microvm.nix +++ b/modules/microvm.nix @@ -175,6 +175,10 @@ in ''; }; + systemd.tmpfiles.rules = [ + "d /home/root 0600 root root -" # createHome does not create it + ]; + users = { mutableUsers = false; # store root users files persistent, especially .bash_history