From a02ab9b9364f9212c0d5d2c27b49793f6f3bc0bb Mon Sep 17 00:00:00 2001 From: Simon Parri Date: Tue, 17 Jun 2025 02:18:39 -0500 Subject: modules/zcfan -> modules/thinkpad --- modules/zcfan.nix | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 modules/zcfan.nix (limited to 'modules/zcfan.nix') diff --git a/modules/zcfan.nix b/modules/zcfan.nix deleted file mode 100644 index d26c07d..0000000 --- a/modules/zcfan.nix +++ /dev/null @@ -1,25 +0,0 @@ -{ lib, config, pkgs, ... }: - -let cfg = config.this.laptop.zcfan; - mkConf = c: lib.generators.toKeyValue { - mkKeyValue = lib.generators.mkKeyValueDefault {} " "; - } c; - conf = mkConf cfg.settings; -in -{ - options = { - this.laptop.zcfan.enable = lib.mkEnableOption "zcfan"; - this.laptop.zcfan.settings = lib.mkOption { - type = with lib.types; - attrsOf (oneOf [int str]); - default = { }; - description = "Settings for zcfan."; - }; - }; - - config = lib.mkIf cfg.enable { - environment.etc."zcfan.conf" = lib.mkIf (conf != "") { text = conf; }; - environment.systemPackages = [ pkgs.zcfan ]; - systemd.packages = [ pkgs.zcfan ]; - }; -} -- cgit v1.2.3