diff options
author | Jared Baur <jaredbaur@fastmail.com> | 2022-11-24 12:31:07 -0800 |
---|---|---|
committer | Jared Baur <jaredbaur@fastmail.com> | 2022-11-24 12:31:07 -0800 |
commit | 53021e3340a19f1fac612085adffb941d0b9151c (patch) | |
tree | 03cf0848261e79f9a1df75d5216e26ada9187525 /nixos/modules/programs | |
parent | 610fcf1243fef570261c3255e8150b87b11c9604 (diff) |
nixos/flashrom: Add package option
Allow for custom flashrom package to be used.
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r-- | nixos/modules/programs/flashrom.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/programs/flashrom.nix b/nixos/modules/programs/flashrom.nix index 5f0de5a402341..ff495558c9e04 100644 --- a/nixos/modules/programs/flashrom.nix +++ b/nixos/modules/programs/flashrom.nix @@ -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 = { }; }; } |