Skip to content

Commit

Permalink
nixos/hardware.sane.dsseries: remove with lib;
Browse files Browse the repository at this point in the history
  • Loading branch information
Stunkymonkey committed Dec 8, 2024
1 parent bbea258 commit 21a5864
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
{ config, lib, pkgs, ... }:

with lib;

{
options = {

hardware.sane.dsseries.enable =
mkEnableOption "Brother DSSeries scan backend" // {
lib.mkEnableOption "Brother DSSeries scan backend" // {
description = ''
When enabled, will automatically register the "dsseries" SANE backend.
Expand All @@ -16,7 +13,7 @@ with lib;
};
};

config = mkIf (config.hardware.sane.enable && config.hardware.sane.dsseries.enable) {
config = lib.mkIf (config.hardware.sane.enable && config.hardware.sane.dsseries.enable) {

hardware.sane.extraBackends = [ pkgs.dsseries ];
services.udev.packages = [ pkgs.dsseries ];
Expand Down

0 comments on commit 21a5864

Please sign in to comment.