From 53021e3340a19f1fac612085adffb941d0b9151c Mon Sep 17 00:00:00 2001 From: Jared Baur Date: Thu, 24 Nov 2022 12:31:07 -0800 Subject: [PATCH] nixos/flashrom: Add package option Allow for custom flashrom package to be used. --- nixos/modules/programs/flashrom.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/modules/programs/flashrom.nix b/nixos/modules/programs/flashrom.nix index 5f0de5a40234..ff495558c9e0 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 = { }; }; }