1
1
Fork 0
nixos/options/custom/programs/tio.nix

23 lines
566 B
Nix
Raw Normal View History

{ config, lib, ... }:
with lib;
let
cfg = config.custom.programs.tio;
in
{
options.custom.programs.tio.enable = mkOption { default = false; };
config = mkIf cfg.enable {
# Allow serial device access
# https://github.com/tio/tio?tab=readme-ov-file#46-known-issues
users.users.${config.custom.username}.extraGroups = [ "dialout" ];
# https://github.com/tio/tio
#!! Options not available, files written directly
home-manager.users.${config.custom.username}.home.file.".config/tio/config".text = ''
baudrate = 9600
'';
};
}