1 { config, lib, pkgs, ... }:
4 cfg = config.hardware.glasgow;
8 options.hardware.glasgow = {
9 enable = lib.mkOption {
10 type = lib.types.bool;
13 Enables Glasgow udev rules and ensures 'plugdev' group exists.
14 This is a prerequisite to using Glasgow without being root.
19 config = lib.mkIf cfg.enable {
20 services.udev.packages = [ pkgs.glasgow ];
21 users.groups.plugdev = { };