Skip to content

Commit f2b442c

Browse files
SuperSandro2000astro
authored andcommitted
Misc cleanup
1 parent 266bb49 commit f2b442c

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

lib/runner.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
let
77
inherit (pkgs) lib;
88

9-
inherit (microvmConfig) hostName virtiofsdScripts;
9+
inherit (microvmConfig) hostName;
1010

1111
inherit (import ./. { inherit lib; }) createVolumesScript makeMacvtap;
1212
inherit (makeMacvtap {

nixos-modules/microvm/interfaces.nix

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{ config, lib, pkgs, ... }:
22

33
let
4-
inherit (config.networking) hostName;
5-
64
interfacesByType = wantedType:
75
builtins.filter ({ type, ... }: type == wantedType)
86
config.microvm.interfaces;
@@ -24,7 +22,7 @@ in
2422
lib.mkIf (tapInterfaces != []) {
2523
tap-up = ''
2624
set -eou pipefail
27-
'' + lib.concatMapStrings ({ id, mac, ... }: ''
25+
'' + lib.concatMapStrings ({ id, ... }: ''
2826
if [ -e /sys/class/net/${id} ]; then
2927
${lib.getExe' pkgs.iproute2 "ip"} link delete '${id}'
3028
fi
@@ -35,7 +33,7 @@ in
3533

3634
tap-down = ''
3735
set -ou pipefail
38-
'' + lib.concatMapStrings ({ id, mac, ... }: ''
36+
'' + lib.concatMapStrings ({ id, ... }: ''
3937
${lib.getExe' pkgs.iproute2 "ip"} link delete '${id}'
4038
'') tapInterfaces;
4139
}

nixos-modules/microvm/options.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ config, options, lib, pkgs, ... }:
1+
{ config, lib, pkgs, ... }:
22
let
33
self-lib = import ../../lib {
44
inherit lib;
@@ -201,6 +201,7 @@ in
201201
:::
202202
'';
203203
};
204+
204205
volumes = mkOption {
205206
description = "Disk images";
206207
default = [];

0 commit comments

Comments
 (0)