diff options
author | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2018-07-20 21:06:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-20 21:06:32 +0200 |
commit | 1a6af9f88ec2405334a9fd6a977ccbcb53472305 (patch) | |
tree | 4976952d82daa3fb817193170299fd6f50c6c6d1 /nixos/modules/services/networking | |
parent | ce12ad31169edfb1de911e54be9230b298e325f3 (diff) | |
parent | 87f5930c3fb2c852f5243278b7a9da8e117d95e4 (diff) | |
download | nixlib-1a6af9f88ec2405334a9fd6a977ccbcb53472305.tar nixlib-1a6af9f88ec2405334a9fd6a977ccbcb53472305.tar.gz nixlib-1a6af9f88ec2405334a9fd6a977ccbcb53472305.tar.bz2 nixlib-1a6af9f88ec2405334a9fd6a977ccbcb53472305.tar.lz nixlib-1a6af9f88ec2405334a9fd6a977ccbcb53472305.tar.xz nixlib-1a6af9f88ec2405334a9fd6a977ccbcb53472305.tar.zst nixlib-1a6af9f88ec2405334a9fd6a977ccbcb53472305.zip |
Merge pull request #43857 from volth/unused
[bot] treewide: remove unreferenced code
Diffstat (limited to 'nixos/modules/services/networking')
-rw-r--r-- | nixos/modules/services/networking/gdomap.nix | 3 | ||||
-rw-r--r-- | nixos/modules/services/networking/i2pd.nix | 4 | ||||
-rw-r--r-- | nixos/modules/services/networking/morty.nix | 2 | ||||
-rw-r--r-- | nixos/modules/services/networking/znc.nix | 1 |
4 files changed, 2 insertions, 8 deletions
diff --git a/nixos/modules/services/networking/gdomap.nix b/nixos/modules/services/networking/gdomap.nix index b3fd91d037fa..3d829cb69135 100644 --- a/nixos/modules/services/networking/gdomap.nix +++ b/nixos/modules/services/networking/gdomap.nix @@ -2,9 +2,6 @@ with lib; -let - cfg = config.services.gdomap; -in { # # interface diff --git a/nixos/modules/services/networking/i2pd.nix b/nixos/modules/services/networking/i2pd.nix index 8875309143fd..4f219fe56b4c 100644 --- a/nixos/modules/services/networking/i2pd.nix +++ b/nixos/modules/services/networking/i2pd.nix @@ -103,7 +103,7 @@ let ${flip concatMapStrings (collect (proto: proto ? port && proto ? address && proto ? name) cfg.proto) - (proto: let portStr = toString proto.port; in '' + (proto: '' [${proto.name}] enabled = ${boolToString proto.enable} address = ${proto.address} @@ -122,7 +122,7 @@ let # DO NOT EDIT -- this file has been generated automatically. ${flip concatMapStrings (collect (tun: tun ? port && tun ? destination) cfg.outTunnels) - (tun: let portStr = toString tun.port; in '' + (tun: '' [${tun.name}] type = client destination = ${tun.destination} diff --git a/nixos/modules/services/networking/morty.nix b/nixos/modules/services/networking/morty.nix index f24562f11817..cc81e27e9399 100644 --- a/nixos/modules/services/networking/morty.nix +++ b/nixos/modules/services/networking/morty.nix @@ -6,8 +6,6 @@ let cfg = config.services.morty; - configFile = cfg.configFile; - in { diff --git a/nixos/modules/services/networking/znc.nix b/nixos/modules/services/networking/znc.nix index 6f477e3b1460..f817db2ad000 100644 --- a/nixos/modules/services/networking/znc.nix +++ b/nixos/modules/services/networking/znc.nix @@ -26,7 +26,6 @@ let }; # Keep znc.conf in nix store, then symlink or copy into `dataDir`, depending on `mutable`. - notNull = a: ! isNull a; mkZncConf = confOpts: '' Version = 1.6.3 ${concatMapStrings (n: "LoadModule = ${n}\n") confOpts.modules} |