nixpkgs/nixos/modules/hardware/libftdi.nix
Felix Singer 9eac410097 nixos/libftdi: Init module
By enabling this module, the ftdi system group is created and udev
rules from the libftdi package are enabled. Read-/Write access is
granted to the members of the ftdi group and to seat sessions.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-02-21 18:42:20 +01:00

23 lines
426 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.hardware.libftdi;
in
{
options.hardware.libftdi = {
enable = lib.mkEnableOption "udev rules for devices supported by libftdi";
package = lib.mkPackageOption pkgs "libftdi1" { };
};
config = lib.mkIf cfg.enable {
users.groups.ftdi = { };
services.udev.packages = [ cfg.package ];
};
meta.maintainers = with lib.maintainers; [ felixsinger ];
}