mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
nixos/networkd: add TrivialLinkEqualizer options
This commit is contained in:
parent
cf470ebd88
commit
29e5451963
1 changed files with 23 additions and 0 deletions
|
@ -1353,6 +1353,14 @@ let
|
||||||
(assertInt "OrphanMask")
|
(assertInt "OrphanMask")
|
||||||
(assertValueOneOf "Pacing" boolValues)
|
(assertValueOneOf "Pacing" boolValues)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
sectionTrivialLinkEqualizer = checkUnitConfig "TrivialLinkEqualizer" [
|
||||||
|
(assertOnlyFields [
|
||||||
|
"Parent"
|
||||||
|
"Handle"
|
||||||
|
"Id"
|
||||||
|
])
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2230,6 +2238,17 @@ let
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
trivialLinkEqualizerConfig = mkOption {
|
||||||
|
default = {};
|
||||||
|
example = { Parent = "root"; Id = 0; };
|
||||||
|
type = types.addCheck (types.attrsOf unitOption) check.network.sectionTrivialLinkEqualizer;
|
||||||
|
description = lib.mdDoc ''
|
||||||
|
Each attribute in this set specifies an option in the
|
||||||
|
`[TrivialLinkEqualizer]` section of the unit. See
|
||||||
|
{manpage}`systemd.network(5)` for details.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
name = mkOption {
|
name = mkOption {
|
||||||
type = types.nullOr types.str;
|
type = types.nullOr types.str;
|
||||||
default = null;
|
default = null;
|
||||||
|
@ -2737,6 +2756,10 @@ let
|
||||||
[FairQueueing]
|
[FairQueueing]
|
||||||
${attrsToSection def.fairQueueingConfig}
|
${attrsToSection def.fairQueueingConfig}
|
||||||
''
|
''
|
||||||
|
+ optionalString (def.trivialLinkEqualizerConfig != { }) ''
|
||||||
|
[TrivialLinkEqualizer]
|
||||||
|
${attrsToSection def.trivialLinkEqualizerConfig}
|
||||||
|
''
|
||||||
+ def.extraConfig;
|
+ def.extraConfig;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue