Merge pull request #202734 from jmbaur/flashrom-package-option

nixos/flashrom: Add package option
This commit is contained in:
Anderson Torres 2022-11-24 20:13:59 -03:00 committed by GitHub
commit 0603e83936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 = { };
};
}