diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2022-11-24 20:13:59 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-24 20:13:59 -0300 |
commit | 0603e83936afab7775b1e053dbb1822fe69a993d (patch) | |
tree | ec5ceaad385e1d70c4249eee3f56a24923122057 /nixos/modules/programs | |
parent | aa48dde44ad2901ff564ec8eae665b6f4fee7eae (diff) | |
parent | 53021e3340a19f1fac612085adffb941d0b9151c (diff) |
Merge pull request #202734 from jmbaur/flashrom-package-option
nixos/flashrom: Add package option
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 = { }; }; } |