nixos/services.lambdabot: remove with lib;

This commit is contained in:
Felix Buehler 2024-08-28 21:19:11 +02:00 committed by Jörg Thalheim
parent 081c71df4b
commit 0d57426bae

View File

@ -1,7 +1,4 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.lambdabot;
@ -18,16 +15,16 @@ in
services.lambdabot = {
enable = mkOption {
type = types.bool;
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable the Lambdabot IRC bot";
};
package = mkPackageOption pkgs "lambdabot" { };
package = lib.mkPackageOption pkgs "lambdabot" { };
script = mkOption {
type = types.str;
script = lib.mkOption {
type = lib.types.str;
default = "";
description = "Lambdabot script";
};
@ -38,7 +35,7 @@ in
### implementation
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
systemd.services.lambdabot = {
description = "Lambdabot daemon";