summaryrefslogtreecommitdiffstats
path: root/makefu/2configs
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2018-05-31 10:36:10 +0200
committermakefu <github@syntax-fehler.de>2018-05-31 10:36:10 +0200
commit319bb6fa89e24d0da9eca1b9d69c685b95f329f0 (patch)
tree156c83adef4edfba07fbc357564d1e8dc12000d2 /makefu/2configs
parentb7c156e5d25f0acf0a430eb1477890482009c51e (diff)
ma hw/irtoy: init
Diffstat (limited to 'makefu/2configs')
-rw-r--r--makefu/2configs/hw/irtoy.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/makefu/2configs/hw/irtoy.nix b/makefu/2configs/hw/irtoy.nix
new file mode 100644
index 000000000..688f1b2b9
--- /dev/null
+++ b/makefu/2configs/hw/irtoy.nix
@@ -0,0 +1,15 @@
+{ config, lib, pkgs, ... }:
+
+{
+
+ users.users.makefu.packages = with pkgs; [
+ lirc
+ ];
+
+ users.extraUsers.${config.krebs.build.user.name}.extraGroups = [ "dialout" ];
+
+ services.udev.extraRules = ''
+ SUBSYSTEMS=="usb", ATTRS{idProduct}=="fd08", ATTRS{idVendor}=="04d8", SYMLINK+="irtoy", MODE="0666", GROUP="dialout"
+ '';
+}
+