Add fcc-unlock

This commit is contained in:
Fabian Hauser 2022-11-26 10:59:36 +01:00
parent 98c008fa33
commit bc1e1731cf
6 changed files with 53 additions and 18 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, modulesPath, hardwareModules, ... }: {
{ config, lib, pkgs, modulesPath, hardwareModules, pkgFccUnlock, ... }: {
imports = with hardwareModules; [
(modulesPath + "/installer/scan/not-detected.nix")
@ -12,7 +12,12 @@
boot.initrd.kernelModules =
[ "dm-snapshot" ]; # TODO: This should be moved to defaults
environment.systemPackages = with pkgs; [ modemmanager libmbim ];
environment.systemPackages = with pkgs; [ modemmanager libmbim ];
environment.etc."ModemManager/fcc-unlock.d/1eac:1001" = {
source = "${pkgFccUnlock}/bin/fcc-unlock";
};
# CPU Configuration
hardware.cpu.intel.updateMicrocode = true;