NixOS/system/modules/vial.nix

22 lines
434 B
Nix
Raw Normal View History

2024-06-12 09:54:11 +07:00
{ config, pkgs, lib, ... }:
let
cfg = config.profile.vial;
in
{
config = lib.mkIf cfg.enable {
services.udev.packages = with pkgs; [
vial
via
];
environment.systemPackages = with pkgs; [
vial
via
];
services.udev.extraRules = ''
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{serial}=="*vial:f64c2b3c*", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"
'';
};
}