nixos/services.lambdabot: remove with lib;
This commit is contained in:
parent
081c71df4b
commit
0d57426bae
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user