nixos/services.bolt: remove with lib;

This commit is contained in:
Felix Buehler 2024-08-27 20:43:15 +02:00
parent efcfb7ec52
commit 555402cee5

View File

@ -1,15 +1,12 @@
{ config, lib, pkgs, ...}:
with lib;
let
cfg = config.services.hardware.bolt;
in
{
options = {
services.hardware.bolt = {
enable = mkOption {
type = types.bool;
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
Whether to enable Bolt, a userspace daemon to enable
@ -19,11 +16,11 @@ in
'';
};
package = mkPackageOption pkgs "bolt" { };
package = lib.mkPackageOption pkgs "bolt" { };
};
};
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];
services.udev.packages = [ cfg.package ];
systemd.packages = [ cfg.package ];