1 { config, lib, pkgs, ... }:
6 cfg = config.programs.flashrom;
9 options.programs.flashrom = {
13 description = lib.mdDoc ''
14 Installs flashrom and configures udev rules for programmers
15 used by flashrom. Grants access to users in the "flashrom"
19 package = mkPackageOptionMD pkgs "flashrom" { };
22 config = mkIf cfg.enable {
23 services.udev.packages = [ cfg.package ];
24 environment.systemPackages = [ cfg.package ];