summaryrefslogtreecommitdiff
path: root/hel.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-10-30 13:28:58 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-10-30 13:28:58 +0100
commit1f00fccff1dad5ccf5b4d9e89368581b99a0ca62 (patch)
tree70f5ba1738505926c5452f76464fced86f37ddfd /hel.nix
parentbd53caf1ac5e1caf035d2773836e6eef7fbd5fb1 (diff)
downloadnixos-1f00fccff1dad5ccf5b4d9e89368581b99a0ca62.tar
nixos-1f00fccff1dad5ccf5b4d9e89368581b99a0ca62.tar.gz
nixos-1f00fccff1dad5ccf5b4d9e89368581b99a0ca62.tar.bz2
nixos-1f00fccff1dad5ccf5b4d9e89368581b99a0ca62.tar.xz
nixos-1f00fccff1dad5ccf5b4d9e89368581b99a0ca62.zip
Diffstat (limited to 'hel.nix')
-rw-r--r--hel.nix22
1 files changed, 9 insertions, 13 deletions
diff --git a/hel.nix b/hel.nix
index 35df46cb..4904b510 100644
--- a/hel.nix
+++ b/hel.nix
@@ -39,6 +39,12 @@
39 39
40 systemd.services.ModemManager.enable = true; 40 systemd.services.ModemManager.enable = true;
41 41
42 services.gpsd = {
43 enable = true;
44 device = "/dev/serial/by-path/pci-0000:00:14.0-usb-0:2:1.2-port0";
45 readonly = false;
46 };
47
42 powerManagement.enable = true; 48 powerManagement.enable = true;
43 49
44 i18n = { 50 i18n = {
@@ -238,19 +244,6 @@
238 ''; 244 '';
239 }; 245 };
240 246
241 udev.extraRules = ''
242 # Disallow ModemManager from touching Sierra Wireless EM7455 tty ports
243 SUBSYSTEM=="tty", \
244 ATTR{idVendor}=="1199", ATTR{idProduct}=="9079", \
245 ENV{ID_MM_DEVICE_MANUAL_SCAN_ONLY}="1"
246 '';
247
248 services.gpsd = {
249 enable = true;
250 device = "/dev/serial/by-path/pci-0000:00:14.0-usb-0:2:1.2-port0";
251 readonly = false;
252 };
253
254 printing = { 247 printing = {
255 enable = true; 248 enable = true;
256 drivers = with pkgs; [ samsung-unified-linux-driver ]; 249 drivers = with pkgs; [ samsung-unified-linux-driver ];
@@ -479,6 +472,9 @@
479 services.udev.extraRules = with pkgs; '' 472 services.udev.extraRules = with pkgs; ''
480 SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="0", RUN+="${systemd}/bin/systemctl --no-block stop ac-plugged.service" 473 SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="0", RUN+="${systemd}/bin/systemctl --no-block stop ac-plugged.service"
481 SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="${systemd}/bin/systemctl --no-block start ac-plugged.service" 474 SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="${systemd}/bin/systemctl --no-block start ac-plugged.service"
475
476 # Disallow ModemManager from touching Sierra Wireless EM7455 tty ports
477 SUBSYSTEM=="tty", ATTR{idVendor}=="1199", ATTR{idProduct}=="9079", ENV{ID_MM_DEVICE_MANUAL_SCAN_ONLY}="1"
482 ''; 478 '';
483} 479}
484 480