diff options
author | makefu <github@syntax-fehler.de> | 2018-05-31 10:36:10 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2018-05-31 10:36:10 +0200 |
commit | 319bb6fa89e24d0da9eca1b9d69c685b95f329f0 (patch) | |
tree | 156c83adef4edfba07fbc357564d1e8dc12000d2 /makefu/2configs/hw/irtoy.nix | |
parent | b7c156e5d25f0acf0a430eb1477890482009c51e (diff) |
ma hw/irtoy: init
Diffstat (limited to 'makefu/2configs/hw/irtoy.nix')
-rw-r--r-- | makefu/2configs/hw/irtoy.nix | 15 |
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" + ''; +} + |