diff --git a/flake.nix b/flake.nix index 24941931..3ae2de90 100644 --- a/flake.nix +++ b/flake.nix @@ -142,6 +142,12 @@ # Git configuration for safe directory access. printf '[safe]\n\tdirectory = *\n' >/.gitconfig mkdir /tmp; # Temporary directory for various operations. + + # Ensure /etc/passwd and /etc/group exist with root entries + echo "root:x:0:0:root:/root:/bin/bash" > /etc/passwd + echo "root:x:0:" > /etc/group + mkdir -p /root + chmod 700 /root ''; }; });