2024-07-28 21:08:02 +02:00
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
pkgs,
|
|
|
|
|
...
|
|
|
|
|
}:
|
2023-04-05 23:58:42 +02:00
|
|
|
let
|
|
|
|
|
cfg = config.my.profiles.usb-iso;
|
|
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
options.my.profiles.usb-iso = with lib; {
|
|
|
|
|
enable = mkEnableOption "usb-iso profile";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
2025-05-23 23:05:45 +02:00
|
|
|
# binary blobs are needed for ventoy
|
|
|
|
|
nixpkgs.config.permittedInsecurePackages = [
|
2025-11-25 21:17:52 +01:00
|
|
|
"ventoy-1.1.07"
|
2025-05-23 23:05:45 +02:00
|
|
|
];
|
2023-04-05 23:58:42 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
2025-11-25 21:17:52 +01:00
|
|
|
ventoy-full # general
|
2023-04-05 23:58:42 +02:00
|
|
|
woeusb-ng # windows
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
}
|