Skip to content

Commit c4e4a26

Browse files
authored
Fix directory permission bug on creating stateDir the first time
* fix: directory permission bug on creating stateDir the first time * Change state dir permission on activation to at least 7xx which is required by microvm's systemd services
1 parent d7804d2 commit c4e4a26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nixos-modules/host/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ in
2727
system.activationScripts.microvm-host = ''
2828
mkdir -p ${stateDir}
2929
chown ${user}:${group} ${stateDir}
30-
chmod g+w ${stateDir}
30+
chmod u+rwx,g+w ${stateDir}
3131
'';
3232

3333
environment.systemPackages = [

0 commit comments

Comments
 (0)