nixos/services.brltty: remove with lib;

This commit is contained in:
Felix Buehler
2024-08-30 00:30:48 +02:00
parent 555402cee5
commit 3822e798f8
+3 -6
View File
@@ -1,7 +1,4 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.brltty;
@@ -22,15 +19,15 @@ in {
options = {
services.brltty.enable = mkOption {
type = types.bool;
services.brltty.enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Whether to enable the BRLTTY daemon.";
};
};
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
users.users.brltty = {
description = "BRLTTY daemon user";
group = "brltty";