15 lines
259 B
Nix
15 lines
259 B
Nix
{ config, lib, ... }:
|
|
|
|
let
|
|
cfg = config.nfc;
|
|
inherit (config.host) username;
|
|
in
|
|
{
|
|
options.nfc = {
|
|
enable = lib.mkEnableOption "NFC device access";
|
|
};
|
|
config = lib.mkIf cfg.enable {
|
|
users.users.${username}.extraGroups = [ "dialout" ];
|
|
};
|
|
}
|