about summary refs log tree commit diff
path: root/common.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2013-05-19 14:54:28 +0200
committeraszlig <aszlig@redmoonstudios.org>2013-05-19 14:54:28 +0200
commitd8f329093e57bf7e1889551bebc9c09f472ee949 (patch)
tree9fe8fbe0d36cbe2370f5cfdfcd02c2a12f74fa74 /common.nix
parenta4f114423addabd0432a78865148af2d9ba72dd6 (diff)
common: Add fixed axbo SPAC udev device name rule.
This is useful in order to set the device symlink to /dev/axbo and to ensure
that the owner is user "aszlig" (maybe this should be a group called axbo? but
we can change that later)

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'common.nix')
-rw-r--r--common.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/common.nix b/common.nix
index ea6b0286..ad7cb12a 100644
--- a/common.nix
+++ b/common.nix
@@ -89,6 +89,11 @@
       drivers = [ pkgs.foo2zjs pkgs.foomatic_filters ];
     };
 
+    udev.extraRules = ''
+      SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", \
+        ATTRS{serial}=="0001", OWNER="aszlig", SYMLINK+="axbo"
+    '';
+
     xserver = {
       enable = true;
       layout = "dvorak";