modularise config

This commit is contained in:
Felix Schröter 2019-10-19 12:55:35 +02:00
parent ae44502f36
commit 79bba316c2
No known key found for this signature in database
GPG key ID: A12D7C9D2FD34458
28 changed files with 407 additions and 432 deletions

9
common/ledger.nix Normal file
View file

@ -0,0 +1,9 @@
{ config, pkgs, ... }:
{
hardware.ledger.enable = true;
services.udev.extraRules = ''
# Nano S
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0001|1000|1001|1002|1003|1004|1005|1006|1007|1008|1009|100a|100b|100c|100d|100e|100f|1010|1011|1012|1013|1014|1015|1016|1017|1018|1019|101a|101b|101c|101d|101e|101f", TAG+="uaccess", TAG+="udev-acl"
'';
}