mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-05 01:37:24 +08:00
lenovo-z13-gen2: networking.networkmanager.fccUnlockScripts → networking.modemmanager.fccUnlockScripts
Fixes evaluation warning
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, lib, ...}:
|
{ pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
@@ -7,10 +7,15 @@
|
|||||||
|
|
||||||
environment.etc."asound.conf".source = ./asound.conf;
|
environment.etc."asound.conf".source = ./asound.conf;
|
||||||
|
|
||||||
networking.networkmanager.fccUnlockScripts = [
|
networking =
|
||||||
{
|
let
|
||||||
id = "2c7c:030a";
|
fcc_unlock_script = rec {
|
||||||
path = "${pkgs.modemmanager}/share/ModemManager/fcc-unlock.available.d/2c7c:030a";
|
id = "2c7c:030a";
|
||||||
}
|
path = "${pkgs.modemmanager}/share/ModemManager/fcc-unlock.available.d/${id}";
|
||||||
];
|
};
|
||||||
|
in
|
||||||
|
if lib.versionOlder lib.version "25.05pre" then
|
||||||
|
{ networkmanager.fccUnlockScripts = [ fcc_unlock_script ]; }
|
||||||
|
else
|
||||||
|
{ modemmanager.fccUnlockScripts = [ fcc_unlock_script ]; };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user