dotfiles/nixos-modules/hardware/modem-em120r-gl.nix
Fabian Hauser e02d86dffd
All checks were successful
CI / build (push) Successful in 2m9s
Update and clean up modules
2025-03-03 23:46:19 +02:00

24 lines
527 B
Nix

{
lib,
pkgs,
config,
inputs,
...
}:
{
options.dotfiles.hardware.modem-em120r-gl.enable = lib.mkEnableOption "Enable EM120R GL Support";
config = lib.mkIf config.dotfiles.hardware.modem-em120r-gl.enable {
environment.systemPackages = with pkgs; [
modemmanager
libmbim
];
environment.etc."ModemManager/fcc-unlock.d/1eac:1001".source =
let
package = inputs.fcc-unlock.packages.${config.nixpkgs.hostPlatform.system}.default;
in
"${package}/bin/fcc-unlock";
};
}