We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e954df commit 26c0263Copy full SHA for 26c0263
nixos-modules/host/default.nix
@@ -367,10 +367,6 @@ in
367
wants = map (name: "microvm@${name}.service") config.microvm.autostart;
368
};
369
370
- microvm.host.tapScript = lib.mkDefault ''
371
- ${pkgs.iproute2}/bin/ip link set $id up
372
- '';
373
-
374
# This helper creates tap interfaces and attaches them to a bridge
375
# for qemu regardless if it is run as root or not.
376
security.wrappers.qemu-bridge-helper = lib.mkIf (!config.virtualisation.libvirtd.enable) {
nixos-modules/host/options.nix
@@ -37,6 +37,9 @@
37
''${pkgs.iproute2}/bin/ip link set "$id" master br0 up
38
'';
39
type = types.lines;
40
+ default = ''
41
+ ${pkgs.iproute2}/bin/ip link set "$id" up
42
+ '';
43
44
45
vms = mkOption {
0 commit comments