nixos/flashrom: Add package option
Allow for custom flashrom package to be used.
This commit is contained in:
parent
610fcf1243
commit
53021e3340
@ -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 = { };
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user