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, ...}: { config, lib, pkgs, ...}:
with lib;
let let
cfg = config.services.hardware.bolt; cfg = config.services.hardware.bolt;
in in
{ {
options = { options = {
services.hardware.bolt = { services.hardware.bolt = {
enable = mkOption { enable = lib.mkOption {
type = types.bool; type = lib.types.bool;
default = false; default = false;
description = '' description = ''
Whether to enable Bolt, a userspace daemon to enable 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 ]; environment.systemPackages = [ cfg.package ];
services.udev.packages = [ cfg.package ]; services.udev.packages = [ cfg.package ];
systemd.packages = [ cfg.package ]; systemd.packages = [ cfg.package ];