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 @@ -1143,6 +1143,16 @@ let
11431143 ( assertInt "PacketLimit" )
11441144 ( assertRange "PacketLimit" 1 4294967294 )
11451145 ] ;
1146+
1147+ sectionFlowQueuePIE = checkUnitConfig "FlowQueuePIE" [
1148+ ( assertOnlyFields [
1149+ "Parent"
1150+ "Handle"
1151+ "PacketLimit"
1152+ ] )
1153+ ( assertInt "PacketLimit" )
1154+ ( assertRange "PacketLimit" 1 4294967294 )
1155+ ] ;
11461156 } ;
11471157 } ;
11481158
@@ -1855,6 +1865,17 @@ let
18551865 '' ;
18561866 } ;
18571867
1868+ flowQueuePIEConfig = mkOption {
1869+ default = { } ;
1870+ example = { Parent = "ingress" ; PacketLimit = "3847" ; } ;
1871+ type = types . addCheck ( types . attrsOf unitOption ) check . network . sectionFlowQueuePIE ;
1872+ description = lib . mdDoc ''
1873+ Each attribute in this set specifies an option in the
1874+ `[FlowQueuePIE]` section of the unit. See
1875+ {manpage}`systemd.network(5)` for details.
1876+ '' ;
1877+ } ;
1878+
18581879 name = mkOption {
18591880 type = types . nullOr types . str ;
18601881 default = null ;
@@ -2302,6 +2323,10 @@ let
23022323 [PIE]
23032324 ${ attrsToSection def . pieConfig }
23042325 ''
2326+ + optionalString ( def . flowQueuePIEConfig != { } ) ''
2327+ [FlowQueuePIE]
2328+ ${ attrsToSection def . flowQueuePIEConfig }
2329+ ''
23052330 + def . extraConfig ;
23062331 } ;
23072332
You can’t perform that action at this time.
0 commit comments