| 27 Jun 2023 |
| @passion-fruit:matrix.org joined the room. | 14:24:43 |
@passion-fruit:matrix.org | Hello! Is it possible to have usb devices appear in /dev during stage 1, if you for example use one as an encryption key? It might just be as simple as loading a kernel module but I'm really stuck here :-) | 14:26:23 |
@elvishjerricco:matrix.org | Fruity Passions: yea you probably just need a module added to boot.initrd.availableKernelModules | 14:29:45 |
oddlama | In reply to @passion-fruit:matrix.org Hello! Is it possible to have usb devices appear in /dev during stage 1, if you for example use one as an encryption key? It might just be as simple as loading a kernel module but I'm really stuck here :-) my guess is on usb_storage | 14:45:44 |
@linus:schreibt.jetzt | what kind of USB device? | 14:46:27 |
@linus:schreibt.jetzt | you'll need a USB controller driver, though it's likely that that's already covered by what nixos-generate-config produces (typically xhci_pci) | 14:51:32 |
@linus:schreibt.jetzt | and depending on what kind of USB device you may also need a driver (like usb_storage if it's an older or less fancy USB storage device, or uas for newer ones) | 14:52:11 |
@elvishjerricco:matrix.org | If you want a brute force solution, you could probably just import the all-hardware.nix module out of nixpkgs | 14:52:30 |
@linus:schreibt.jetzt | but if it's a yubikey or something there's no kernel-side driver for it | 14:52:50 |
@passion-fruit:matrix.org | In reply to @linus:schreibt.jetzt what kind of USB device? Plain ol USB 2.0. It's model comes up as "FlashDisk" and it's very old (I think it's only a gig in size). | 15:26:03 |
@passion-fruit:matrix.org | In reply to @oddlama:matrix.org my guess is on usb_storage Already loaded by hardware-configuration but thanks for the guess :) | 15:27:10 |