1 { config, lib, pkgs, ... }:
4 cfg = config.programs.flashrom;
7 options.programs.flashrom = {
8 enable = lib.mkOption {
12 Installs flashrom and configures udev rules for programmers
13 used by flashrom. Grants access to users in the "flashrom"
17 package = lib.mkPackageOption pkgs "flashrom" { };
20 config = lib.mkIf cfg.enable {
21 services.udev.packages = [ cfg.package ];
22 environment.systemPackages = [ cfg.package ];