File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 16
16
* Runners execute the hypervisor with a process name of
17
17
` microvm@$NAME `
18
18
* We no longer let ` environment.noXlibs ` default to ` true `
19
+ * ** Breaking:** the ` microvm ` user is no longer in the ` disk ` group
20
+ for security reasons. Add `users.users.microvm.extraGroups = [
21
+ "disk" ] ` to your config to restore the old behavior.
19
22
20
23
## 0.4.1 (2023-11-03)
21
24
Original file line number Diff line number Diff line change @@ -122,3 +122,16 @@ nix.nixPath = [
122
122
"nixpkgs=${builtins.storePath <nixpkgs>}"
123
123
];
124
124
```
125
+
126
+ # How do I let the ` microvm ` user access block devices?
127
+
128
+ You can re-add the following line to your host's NixOS configuration
129
+ which was removed from microvm.nix:
130
+
131
+ ``` nix
132
+ users.users.microvm.extraGroups = [ "disk" ];
133
+ ```
134
+
135
+ The more secure solution would be writing custom
136
+ ` services.udev.extraRules ` that assign ownership/permissions to the
137
+ individually used block devices.
Original file line number Diff line number Diff line change 171
171
users . users . ${ user } = {
172
172
isSystemUser = true ;
173
173
inherit group ;
174
- # allow access to zvol
175
- extraGroups = [ "disk" ] ;
176
174
} ;
177
175
178
176
security . pam . loginLimits = [
You can’t perform that action at this time.
0 commit comments