File tree Expand file tree Collapse file tree
nixos/modules/system/boot Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1270,6 +1270,13 @@ let
12701270 ] )
12711271 ( assertValueOneOf "ECN" boolValues )
12721272 ] ;
1273+
1274+ sectionDeficitRoundRobinScheduler = checkUnitConfig "DeficitRoundRobinScheduler" [
1275+ ( assertOnlyFields [
1276+ "Parent"
1277+ "Handle"
1278+ ] )
1279+ ] ;
12731280 } ;
12741281 } ;
12751282
@@ -2081,6 +2088,17 @@ let
20812088 '' ;
20822089 } ;
20832090
2091+ deficitRoundRobinSchedulerConfig = mkOption {
2092+ default = { } ;
2093+ example = { Parent = "root" ; } ;
2094+ type = types . addCheck ( types . attrsOf unitOption ) check . network . sectionDeficitRoundRobinScheduler ;
2095+ description = lib . mdDoc ''
2096+ Each attribute in this set specifies an option in the
2097+ `[DeficitRoundRobinScheduler]` section of the unit. See
2098+ {manpage}`systemd.network(5)` for details.
2099+ '' ;
2100+ } ;
2101+
20842102 name = mkOption {
20852103 type = types . nullOr types . str ;
20862104 default = null ;
@@ -2564,6 +2582,10 @@ let
25642582 [ControlledDelay]
25652583 ${ attrsToSection def . controlledDelayConfig }
25662584 ''
2585+ + optionalString ( def . deficitRoundRobinSchedulerConfig != { } ) ''
2586+ [DeficitRoundRobinScheduler]
2587+ ${ attrsToSection def . deficitRoundRobinSchedulerConfig }
2588+ ''
25672589 + def . extraConfig ;
25682590 } ;
25692591
You can’t perform that action at this time.
0 commit comments