mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-03 08:47:13 +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 = [
|
||||
@@ -7,10 +7,15 @@
|
||||
|
||||
environment.etc."asound.conf".source = ./asound.conf;
|
||||
|
||||
networking.networkmanager.fccUnlockScripts = [
|
||||
{
|
||||
id = "2c7c:030a";
|
||||
path = "${pkgs.modemmanager}/share/ModemManager/fcc-unlock.available.d/2c7c:030a";
|
||||
}
|
||||
];
|
||||
networking =
|
||||
let
|
||||
fcc_unlock_script = rec {
|
||||
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