default.nix (310B)
1 { 2 lib, 3 options, 4 config, 5 ... 6 }: 7 { 8 options.modules.tlp = { 9 enable = lib.mkOption { 10 description = "Whether to enable TLP."; 11 default = false; 12 type = lib.types.bool; 13 }; 14 }; 15 16 config = lib.mkIf config.modules.tlp.enable { 17 services.tlp = { 18 enable = true; 19 }; 20 }; 21 }