This commit is contained in:
parent
cc3d5090ac
commit
e02d86dffd
21 changed files with 270 additions and 241 deletions
24
nixos-modules/hardware/modem-em120r-gl.nix
Normal file
24
nixos-modules/hardware/modem-em120r-gl.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
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";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue