From e662842c92a6a156d245ea9778da7f75e98fcc28 Mon Sep 17 00:00:00 2001
From: makefu <github@syntax-fehler.de>
Date: Thu, 31 May 2018 10:36:10 +0200
Subject: [PATCH] ma hw/irtoy: init

---
 2configs/hw/irtoy.nix | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 2configs/hw/irtoy.nix

diff --git a/2configs/hw/irtoy.nix b/2configs/hw/irtoy.nix
new file mode 100644
index 0000000..688f1b2
--- /dev/null
+++ b/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"
+  '';
+}
+