util/liveiso: Use programs.flashrom.enable
NixOS 21.11 introduced the option `programs.flashrom.enable`. The option allows installing flashrom and hooking up its udev rules. Thus, set it to `true` and add the user `user` to the `flashrom` group allowing it to use the programmers. Change-Id: I017ddb4314702a5252dfc0d05cd1e4961043d23b Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/62193 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
This commit is contained in:
parent
2164c308b4
commit
3a5e6f529c
|
@ -93,12 +93,14 @@
|
||||||
user = {
|
user = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
group = "user";
|
group = "user";
|
||||||
extraGroups = [ "users" "wheel" "networkmanager" "uucp" ];
|
extraGroups = [ "users" "wheel" "networkmanager" "uucp" "flashrom" ];
|
||||||
initialHashedPassword = "";
|
initialHashedPassword = "";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.flashrom.enable = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
acpica-tools
|
acpica-tools
|
||||||
btrfs-progs
|
btrfs-progs
|
||||||
|
@ -116,7 +118,6 @@
|
||||||
efivar
|
efivar
|
||||||
exfat
|
exfat
|
||||||
f2fs-tools
|
f2fs-tools
|
||||||
flashrom
|
|
||||||
fuse
|
fuse
|
||||||
fuse3
|
fuse3
|
||||||
fwts
|
fwts
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
NixOS configuration files for testing purposes and for working on firmware.
|
NixOS configuration files for testing purposes and for working on firmware.
|
||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
- Use programs.flashrom.enable (#128205) and add `user` to `flashrom` group.
|
|
||||||
Will be usable from the next NixOS release.
|
|
||||||
- Generate customized bootloader configs; FILO is WIP
|
- Generate customized bootloader configs; FILO is WIP
|
||||||
- Add coreboot toolchain
|
- Add coreboot toolchain
|
||||||
- Switch to `programs.neovim` when the module is fixed.
|
- Switch to `programs.neovim` when the module is fixed.
|
||||||
|
|
Loading…
Reference in New Issue