diff options
Diffstat (limited to 'hel.nix')
-rw-r--r-- | hel.nix | 41 |
1 files changed, 32 insertions, 9 deletions
@@ -54,18 +54,9 @@ | |||
54 | shadow | 54 | shadow |
55 | (callPackage ./custom/thinklight.nix { thinklight = "kbd_backlight"; }) | 55 | (callPackage ./custom/thinklight.nix { thinklight = "kbd_backlight"; }) |
56 | (callPackage ./utils/nix/rebuild-system.nix {}) | 56 | (callPackage ./utils/nix/rebuild-system.nix {}) |
57 | libmbim libqmi | ||
58 | ]; | 57 | ]; |
59 | 58 | ||
60 | nixpkgs.config.packageOverrides = pkgs: rec { | 59 | nixpkgs.config.packageOverrides = pkgs: rec { |
61 | libmbim = pkgs.stdenv.lib.overrideDerivation pkgs.libmbim (attrs: { | ||
62 | patches = [ ./patches/attachment-0003.patch ./patches/attachment.patch ]; | ||
63 | buildInputs = attrs.buildInputs ++ [ pkgs.automake114x pkgs.autoconf ]; | ||
64 | }); | ||
65 | libqmi = pkgs.stdenv.lib.overrideDerivation pkgs.libqmi (attrs: { | ||
66 | patches = [ ./patches/attachment-0004.patch ./patches/attachment-0005.patch ]; | ||
67 | buildInputs = attrs.buildInputs ++ [ pkgs.automake pkgs.autoconf ]; | ||
68 | }); | ||
69 | }; | 60 | }; |
70 | 61 | ||
71 | services = { | 62 | services = { |
@@ -161,6 +152,38 @@ | |||
161 | uucp unix - n n - - pipe flags=Fqhu user=uucp argv=/var/setuid-wrappers/uux -z -a$sender - $nexthop!rmail ($recipient) | 152 | uucp unix - n n - - pipe flags=Fqhu user=uucp argv=/var/setuid-wrappers/uux -z -a$sender - $nexthop!rmail ($recipient) |
162 | ''; | 153 | ''; |
163 | }; | 154 | }; |
155 | |||
156 | udev.extraRules = '' | ||
157 | ACTION!="add|change", GOTO="mbim_to_qmi_rules_end" | ||
158 | SUBSYSTEM!="usb|drivers", GOTO="mbim_to_qmi_rules_end" | ||
159 | |||
160 | # load qmi_wwan module | ||
161 | SUBSYSTEM=="usb", \ | ||
162 | ATTR{idVendor}=="1199", ATTR{idProduct}=="9079", \ | ||
163 | RUN+="/sbin/modprobe -b qmi_wwan" | ||
164 | |||
165 | # force Sierra Wireless EM7455 to configuration #1 | ||
166 | SUBSYSTEM=="usb", \ | ||
167 | ATTR{idVendor}=="1199", ATTR{idProduct}=="9079", \ | ||
168 | ATTR{bConfigurationValue}="1" | ||
169 | |||
170 | # add the new id in the qmi_wwan driver | ||
171 | SUBSYSTEM=="drivers", \ | ||
172 | ENV{DEVPATH}=="/bus/usb/drivers/qmi_wwan", \ | ||
173 | ATTR{new_id}="1199 9079" | ||
174 | |||
175 | # load qcserial module | ||
176 | SUBSYSTEM=="usb", \ | ||
177 | ATTR{idVendor}=="1199", ATTR{idProduct}=="9079", \ | ||
178 | RUN+="/sbin/modprobe -b qcserial" | ||
179 | |||
180 | # add the new id in the qcserial driver | ||
181 | SUBSYSTEM=="drivers", \ | ||
182 | ENV{DEVPATH}=="/bus/usb-serial/drivers/qcserial", \ | ||
183 | ATTR{new_id}="1199 9079" | ||
184 | |||
185 | LABEL="mbim_to_qmi_rules_end" | ||
186 | ''; | ||
164 | }; | 187 | }; |
165 | 188 | ||
166 | users = { | 189 | users = { |