Unverified Commit bb46a076 authored by 0x4A6F's avatar 0x4A6F
Browse files

fw-fanctrl: set default strategies

- fixes #426282

- current implementation breaks generation of strategies,
  when strategies are not defined by user.

- minimal working config with `strategies.default = null`:
```nix
  hardware.fw-fanctrl = {
    enable = true;
    config.strategies = { };
  };
```

- User should be able to start the service, when only `hardware.fw-fanctrl.enable`
  is enabled.
parent 25ad44bc
Loading
Loading
Loading
Loading
+35 −37
Original line number Diff line number Diff line
@@ -48,12 +48,11 @@ in
          };

          strategies = lib.mkOption {
            default = null;
            default = { };
            description = ''
              Additional strategies which can be used by fw-fanctrl
            '';
            type = lib.types.nullOr (
              lib.types.attrsOf (
            type = lib.types.attrsOf (
              lib.types.submodule {
                options = {
                  fanSpeedUpdateFrequency = lib.mkOption {
@@ -92,7 +91,6 @@ in
                  };
                };
              }
              )
            );
          };
        };