2020-04-24 23:36:52 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.digitalbitbox;
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
options.programs.digitalbitbox = {
|
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
2022-08-12 12:06:08 +00:00
|
|
|
description = lib.mdDoc ''
|
2020-04-24 23:36:52 +00:00
|
|
|
Installs the Digital Bitbox application and enables the complementary hardware module.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
package = mkPackageOption pkgs "digitalbitbox" {
|
|
|
|
extraDescription = ''
|
|
|
|
This can be used to install a package with udev rules that differ from the defaults.
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment.systemPackages = [ cfg.package ];
|
|
|
|
hardware.digitalbitbox = {
|
|
|
|
enable = true;
|
|
|
|
package = cfg.package;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2023-02-02 18:25:31 +00:00
|
|
|
doc = ./default.md;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with lib.maintainers; [ vidbina ];
|
|
|
|
};
|
|
|
|
}
|