diff options
author | volth <volth@volth.com> | 2018-07-20 17:56:59 +0000 |
---|---|---|
committer | volth <volth@volth.com> | 2018-07-20 18:48:37 +0000 |
commit | 87f5930c3fb2c852f5243278b7a9da8e117d95e4 (patch) | |
tree | d76aa79bc394e820305c4eebbd250c89f6992eb9 /nixos/modules/services/web-servers | |
parent | a7e5927b4739c6e6427fc993f077cd3eb5433db7 (diff) | |
download | nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.tar nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.tar.gz nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.tar.bz2 nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.tar.lz nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.tar.xz nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.tar.zst nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.zip |
[bot]: remove unreferenced code
Diffstat (limited to 'nixos/modules/services/web-servers')
4 files changed, 0 insertions, 22 deletions
diff --git a/nixos/modules/services/web-servers/apache-httpd/default.nix b/nixos/modules/services/web-servers/apache-httpd/default.nix index eb8ee9b5cf46..73607c6f9a3b 100644 --- a/nixos/modules/services/web-servers/apache-httpd/default.nix +++ b/nixos/modules/services/web-servers/apache-httpd/default.nix @@ -98,11 +98,6 @@ let allSubservices = mainSubservices ++ concatMap subservicesFor mainCfg.virtualHosts; - # !!! should be in lib - writeTextInDir = name: text: - pkgs.runCommand name {inherit text;} "mkdir -p $out; echo -n \"$text\" > $out/$name"; - - enableSSL = any (vhost: vhost.enableSSL) allHosts; diff --git a/nixos/modules/services/web-servers/apache-httpd/owncloud.nix b/nixos/modules/services/web-servers/apache-httpd/owncloud.nix index 82b8bf3e30db..6345a9a56935 100644 --- a/nixos/modules/services/web-servers/apache-httpd/owncloud.nix +++ b/nixos/modules/services/web-servers/apache-httpd/owncloud.nix @@ -4,17 +4,6 @@ with lib; let - httpd = serverInfo.serverConfig.package; - - version24 = !versionOlder httpd.version "2.4"; - - allGranted = if version24 then '' - Require all granted - '' else '' - Order allow,deny - Allow from all - ''; - owncloudConfig = pkgs.writeText "config.php" '' <?php diff --git a/nixos/modules/services/web-servers/apache-httpd/trac.nix b/nixos/modules/services/web-servers/apache-httpd/trac.nix index 35b9ab56087c..28b411a64b6f 100644 --- a/nixos/modules/services/web-servers/apache-httpd/trac.nix +++ b/nixos/modules/services/web-servers/apache-httpd/trac.nix @@ -12,8 +12,6 @@ let apacheHttpd = httpd; }; - pythonLib = p: "${p}/"; - httpd = serverInfo.serverConfig.package; versionPre24 = versionOlder httpd.version "2.4"; diff --git a/nixos/modules/services/web-servers/uwsgi.nix b/nixos/modules/services/web-servers/uwsgi.nix index 3ef78ea77cb2..3f858d90fa46 100644 --- a/nixos/modules/services/web-servers/uwsgi.nix +++ b/nixos/modules/services/web-servers/uwsgi.nix @@ -27,10 +27,6 @@ let else if hasPython3 then uwsgi.python3 else null; - pythonPackages = pkgs.pythonPackages.override { - inherit python; - }; - pythonEnv = python.withPackages (c.pythonPackages or (self: [])); uwsgiCfg = { |