nixos/flashrom: Add package option

Allow for custom flashrom package to be used.
This commit is contained in:
Jared Baur 2022-11-24 12:31:07 -08:00
parent 610fcf1243
commit 53021e3340
No known key found for this signature in database

View File

@ -16,11 +16,12 @@ in
group.
'';
};
package = mkPackageOption pkgs "flashrom" { };
};
config = mkIf cfg.enable {
services.udev.packages = [ pkgs.flashrom ];
environment.systemPackages = [ pkgs.flashrom ];
services.udev.packages = [ cfg.package ];
environment.systemPackages = [ cfg.package ];
users.groups.flashrom = { };
};
}