From ce0128942303fd0a8869252027315d6a0cca731e Mon Sep 17 00:00:00 2001 From: Adam Stephens Date: Thu, 30 May 2024 11:52:04 -0400 Subject: [PATCH] add camera udev rule and modem symlink --- module.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/module.nix b/module.nix index 7fad5c8..2d31c17 100644 --- a/module.nix +++ b/module.nix @@ -112,6 +112,14 @@ in }; }; + # https://github.com/jhovold/linux/wiki/X13s#modem + networking.networkmanager.fccUnlockScripts = [ + { + id = "105b:e0c3"; + path = "${pkgs.modemmanager}/share/ModemManager/fcc-unlock.available.d/105b"; + } + ]; + nixpkgs.overlays = [ (_: super: { # don't try and use zfs @@ -127,6 +135,11 @@ in # default is performance powerManagement.cpuFreqGovernor = "ondemand"; + # https://github.com/jhovold/linux/wiki/X13s#camera + services.udev.extraRules = '' + ACTION=="add", SUBSYSTEM=="dma_heap", KERNEL=="system", GROUP="video", MODE="0660" + ''; + systemd.services.bluetooth-x13s-mac = { wantedBy = [ "multi-user.target" ]; before = [ "bluetooth.service" ];