Skip to content

Commit 4426a40

Browse files
authored
replace activation script with tmpfiles #480 (#481)
replace activation script with tmpfiles #480
1 parent 9d1ff9b commit 4426a40

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

nixos-modules/host/default.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ in
2929
"vhost_net"
3030
];
3131

32-
system.activationScripts.microvm-host = ''
33-
mkdir -p ${stateDir}
34-
chown ${user}:${group} ${stateDir}
35-
chmod u+rwx,g+w ${stateDir}
36-
'';
32+
systemd.tmpfiles.settings."10-microvm"."${stateDir}".d = {
33+
user = user;
34+
group = group;
35+
mode = "0775";
36+
};
3737

3838
environment.systemPackages = [
3939
microvmCommand

0 commit comments

Comments
 (0)