forked from mirrors_public/oddlama_nix-config
fix: add interface naming rules in stage1 udev
This commit is contained in:
parent
7ddb0ee23f
commit
836dfa9fea
1 changed files with 3 additions and 2 deletions
|
@ -32,7 +32,7 @@ in {
|
||||||
type = types.attrsOf types.str;
|
type = types.attrsOf types.str;
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = lib.mkIf (cfg != {}) {
|
||||||
assertions = let
|
assertions = let
|
||||||
duplicateMacs = extraLib.duplicates (attrValues cfg);
|
duplicateMacs = extraLib.duplicates (attrValues cfg);
|
||||||
in [
|
in [
|
||||||
|
@ -42,6 +42,7 @@ in {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
services.udev.packages = lib.mkIf (cfg != {}) [interfaceNamesUdevRules];
|
services.udev.packages = [interfaceNamesUdevRules];
|
||||||
|
boot.initrd.services.udev.packages = [interfaceNamesUdevRules];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue