mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
37 lines
804 B
Nix
37 lines
804 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.programs.digitalbitbox;
|
|
in
|
|
|
|
{
|
|
options.programs.digitalbitbox = {
|
|
enable = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
description = ''
|
|
Installs the Digital Bitbox application and enables the complementary hardware module.
|
|
'';
|
|
};
|
|
|
|
package = lib.mkPackageOption pkgs "digitalbitbox" {
|
|
extraDescription = ''
|
|
This can be used to install a package with udev rules that differ from the defaults.
|
|
'';
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
environment.systemPackages = [ cfg.package ];
|
|
hardware.digitalbitbox = {
|
|
enable = true;
|
|
package = cfg.package;
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
doc = ./default.md;
|
|
maintainers = with lib.maintainers; [ vidbina ];
|
|
};
|
|
}
|