mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
nixos/hardware.digitalbitbox: remove with lib;
This commit is contained in:
parent
5a78f2c772
commit
d485dfece4
@ -1,29 +1,26 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.hardware.digitalbitbox;
|
cfg = config.hardware.digitalbitbox;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
options.hardware.digitalbitbox = {
|
options.hardware.digitalbitbox = {
|
||||||
enable = mkOption {
|
enable = lib.mkOption {
|
||||||
type = types.bool;
|
type = lib.types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = ''
|
description = ''
|
||||||
Enables udev rules for Digital Bitbox devices.
|
Enables udev rules for Digital Bitbox devices.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
package = mkPackageOption pkgs "digitalbitbox" {
|
package = lib.mkPackageOption pkgs "digitalbitbox" {
|
||||||
extraDescription = ''
|
extraDescription = ''
|
||||||
This can be used to install a package with udev rules that differ from the defaults.
|
This can be used to install a package with udev rules that differ from the defaults.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
services.udev.packages = [ cfg.package ];
|
services.udev.packages = [ cfg.package ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user