mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-03 08:47:13 +08:00
22 lines
522 B
Nix
22 lines
522 B
Nix
{ pkgs, lib, ... }:
|
|
|
|
{
|
|
imports = [
|
|
../../../../../lenovo/thinkpad/z/gen2
|
|
];
|
|
|
|
environment.etc."asound.conf".source = ./asound.conf;
|
|
|
|
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 ]; };
|
|
}
|