1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2025-01-08 12:48:50 +03:00
mobile-nixos/modules/usb-gadget.nix
Daniel Barlow 3142445698 modules: Init usb-gadget with configfs mountpoint
Co-authored-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
2022-10-13 21:01:21 -04:00

10 lines
213 B
Nix

{ config, lib, pkgs, ... }:
{
# Ensure configfs is mounted if needed.
fileSystems."/sys/kernel/config" = lib.mkIf (config.mobile.usb.mode == "gadgetfs") {
device = "none";
fsType = "configfs";
};
}