@@ -4,7 +4,7 @@ with lib;
44
55let
66
7− cfg = config.networking.ubuntu-fan;
7+ cfg = config.networking.fan;
88 modprobe = "${config.system.sbin.modprobe}/sbin/modprobe";
99
1010in
@@ -15,9 +15,9 @@ in
1515
1616 options = {
1717
18− networking.ubuntu-fan = {
18+ networking.fan = {
1919
20− enable = mkEnableOption "Ubuntu FAN Networking";
20+ enable = mkEnableOption "FAN Networking";
2121
2222 };
2323
@@ -30,8 +30,8 @@ in
3030
3131 environment.systemPackages = [ pkgs.fanctl ];
3232
33− systemd.services.ubuntu-fan = {
34− description = "Ubuntu FAN Networking";
33+ systemd.services.fan = {
34+ description = "FAN Networking";
3535 wantedBy = [ "multi-user.target" ];
3636 after = [ "network-online.target" ];
3737 before = [ "docker.service" ];
@@ -40,12 +40,12 @@ in
4040 if [ ! -f /proc/sys/net/fan/version ]; then
4141 ${modprobe} ipip
4242 if [ ! -f /proc/sys/net/fan/version ]; then
43− echo "The Ubuntu Fan Networking patches have not been applied to this kernel!" 1>&2
43+ echo "The Fan Networking patches have not been applied to this kernel!" 1>&2
4444 exit 1
4545 fi
4646 fi
4747
48− mkdir -p /var/lib/ubuntu-fan
48+ mkdir -p /var/lib/fan-networking
4949 '';
5050 serviceConfig = {
5151 Type = "oneshot";