mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2025-01-08 12:48:50 +03:00
3142445698
Co-authored-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
10 lines
213 B
Nix
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";
|
|
};
|
|
}
|