mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-22 08:04:20 +01:00
Pin interface to specific name in microvm-extras
Signed-off-by: magic_rb <richard@brezak.sk>
This commit is contained in:
parent
05cf178c7a
commit
9549ef1003
|
@ -336,6 +336,10 @@ in
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
services.udev.extraRules = ''
|
||||||
|
ATTR{address}=="02:00:00:00:${intToHex cfg.groupId}:${intToHex cfg.taskId}", NAME="eth0"
|
||||||
|
'';
|
||||||
|
|
||||||
networking.interfaces."eth0" = {
|
networking.interfaces."eth0" = {
|
||||||
ipv4.addresses = [
|
ipv4.addresses = [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue