nixos/profiles/usb-iso/default.nix
2025-05-23 23:05:45 +02:00

25 lines
448 B
Nix

{
config,
lib,
pkgs,
...
}:
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 {
# binary blobs are needed for ventoy
nixpkgs.config.permittedInsecurePackages = [
"ventoy-1.1.05"
];
environment.systemPackages = with pkgs; [
ventoy-bin-full # general
woeusb-ng # windows
];
};
}