1
1
Fork 0
nixos/options/custom/programs/bitwarden-menu.nix
Myned ab485dec35
nix: format with alejandra
Signed-off-by: Myned <dev@bjork.tech>
2024-09-12 20:50:53 -05:00

31 lines
845 B
Nix

{
config,
lib,
...
}:
with lib; let
wofi = "${config.home-manager.users.${config.custom.username}.programs.wofi.package}/bin/wofi";
cfg = config.custom.programs.bitwarden-menu;
in {
options.custom.programs.bitwarden-menu.enable = mkOption {default = false;};
config.home-manager.users.${config.custom.username} = mkIf cfg.enable {
# https://github.com/firecat53/bitwarden-menu
#!! Options not available, files written directly
# https://github.com/firecat53/bitwarden-menu/blob/main/docs/configure.md
home.file.".config/bwm/config.ini".text = ''
[dmenu]
dmenu_command = ${wofi} --dmenu
[dmenu_passphrase]
obscure = True
# FIXME: Login options taking effect
[vault]
server = https://vault.bitwarden.com
twofactor = 0
session_timeout_min = 720
'';
};
}