mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-10 23:00:39 +02:00
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;
|
||||
};
|
||||
|
||||
config = {
|
||||
config = lib.mkIf (cfg != {}) {
|
||||
assertions = let
|
||||
duplicateMacs = extraLib.duplicates (attrValues cfg);
|
||||
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