Merge pull request #202734 from jmbaur/flashrom-package-option
nixos/flashrom: Add package option
This commit is contained in:
commit
0603e83936
@ -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