NixOS/system/modules/vial.nix

27 lines
442 B
Nix
Raw Normal View History

{
config,
pkgs,
lib,
...
}:
2024-06-12 09:54:11 +07:00
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"
'';
};
}