Skip to content

Commit 1a62cb5

Browse files
PatrickDaGastro
authored andcommitted
fix: macvtap-down as lines
1 parent d1d09b0 commit 1a62cb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nixos-modules/microvm/interfaces.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ in
5353
${pkgs.coreutils-full}/bin/chown '${user}:${group}' /dev/tap$(< "/sys/class/net/${id}/ifindex")
5454
'') macvtapInterfaces;
5555

56-
macvap-down = pkgs.writeShellScriptBin "microvm-${hostName}-macvtap-down" (''
56+
macvtap-down = ''
5757
set -ou pipefail
58-
'' + lib.concatMapStrings ({ id, mac, ... }: ''
58+
'' + lib.concatMapStrings ({ id, ... }: ''
5959
${pkgs.iproute2}/bin/ip link del name '${id}'
60-
'') macvtapInterfaces);
60+
'') macvtapInterfaces;
6161
}
6262
) ];
6363
}

0 commit comments

Comments
 (0)