summary refs log tree commit diff
path: root/nixos/modules/services/networking
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2017-09-23 17:55:33 +0200
committerRobin Gloster <mail@glob.in>2017-09-23 17:55:33 +0200
commit08b09fdc5cff4249c9986f2403d2e4cea6e62feb (patch)
treec9031e38dc5ee93d877bf539be9352eda59a61d0 /nixos/modules/services/networking
parent694e7e08d65d6d66b5e50a02c7a329ecec598f3c (diff)
downloadnixlib-08b09fdc5cff4249c9986f2403d2e4cea6e62feb.tar
nixlib-08b09fdc5cff4249c9986f2403d2e4cea6e62feb.tar.gz
nixlib-08b09fdc5cff4249c9986f2403d2e4cea6e62feb.tar.bz2
nixlib-08b09fdc5cff4249c9986f2403d2e4cea6e62feb.tar.lz
nixlib-08b09fdc5cff4249c9986f2403d2e4cea6e62feb.tar.xz
nixlib-08b09fdc5cff4249c9986f2403d2e4cea6e62feb.tar.zst
nixlib-08b09fdc5cff4249c9986f2403d2e4cea6e62feb.zip
fanctl, fan module: remove
This has been broken nearly all the time due to the patches needed to
iproute2 not being compatible with the newer versions we have been
shipping. As long as Ubuntu does not manage to upstream these changes
so they are maintained with iproute2 and we don't have a maintainer
updating these patches to new iproute2 versions it is not feasible to
have this available.
Diffstat (limited to 'nixos/modules/services/networking')
-rw-r--r--nixos/modules/services/networking/fan.nix60
1 files changed, 0 insertions, 60 deletions
diff --git a/nixos/modules/services/networking/fan.nix b/nixos/modules/services/networking/fan.nix
deleted file mode 100644
index 7f4e36478325..000000000000
--- a/nixos/modules/services/networking/fan.nix
+++ /dev/null
@@ -1,60 +0,0 @@
-{ config, lib, pkgs, ... }:
-
-with lib;
-
-let
-
-  cfg = config.networking.fan;
-  modprobe = "${pkgs.kmod}/bin/modprobe";
-
-in
-
-{
-
-  ###### interface
-
-  options = {
-
-    networking.fan = {
-
-      enable = mkEnableOption "FAN Networking";
-
-    };
-
-  };
-
-
-  ###### implementation
-
-  config = mkIf cfg.enable {
-
-    environment.systemPackages = [ pkgs.fanctl ];
-
-    systemd.services.fan = {
-      description = "FAN Networking";
-      wantedBy = [ "multi-user.target" ];
-      after = [ "network-online.target" ];
-      before = [ "docker.service" ];
-      restartIfChanged = false;
-      preStart = ''
-        if [ ! -f /proc/sys/net/fan/version ]; then
-          ${modprobe} ipip
-          if [ ! -f /proc/sys/net/fan/version ]; then
-            echo "The Fan Networking patches have not been applied to this kernel!" 1>&2
-            exit 1
-          fi
-        fi
-
-        mkdir -p /var/lib/fan-networking
-      '';
-      serviceConfig = {
-        Type = "oneshot";
-        RemainAfterExit = true;
-        ExecStart = "${pkgs.fanctl}/bin/fanctl up -a";
-        ExecStop = "${pkgs.fanctl}/bin/fanctl down -a";
-      };
-    };
-
-  };
-
-}