mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
meta/ports: Rename list options
This commit is contained in:
parent
250e2ea3d0
commit
3fd0e85151
24 changed files with 29 additions and 29 deletions
|
|
@ -10,11 +10,11 @@ let
|
|||
in
|
||||
{
|
||||
options.meta.ports = {
|
||||
tcp.list = lib.mkOption {
|
||||
tcp = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.port;
|
||||
default = [ ];
|
||||
};
|
||||
udp.list = lib.mkOption {
|
||||
udp = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.port;
|
||||
default = [ ];
|
||||
};
|
||||
|
|
@ -26,7 +26,7 @@ in
|
|||
let
|
||||
findDuplicatePorts =
|
||||
protocol:
|
||||
options.meta.ports.${protocol}.list.definitionsWithLocations
|
||||
options.meta.ports.${protocol}.definitionsWithLocations
|
||||
|> lib.concatMap (
|
||||
{ file, value }:
|
||||
value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue