{ config, lib, pkgs, ... }: let cfg = config.snowhawk.rbw; inherit (lib) mkIf mkEnableOption; in { options.snowhawk.rbw = { enable = mkEnableOption "rbw home-manager module"; }; config = mkIf cfg.enable { programs.rbw.enable = true; home.packages = with pkgs; [ rbw pinentry-tty ]; }; }