mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
25 lines
448 B
Nix
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
|
|
];
|
|
};
|
|
}
|