NixOS/home/programs/bitwarden.nix

20 lines
350 B
Nix
Raw Normal View History

2024-06-12 18:09:56 +07:00
{ pkgs, config, lib, ... }:
let
cfg = config.profile.bitwarden;
in
{
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
bitwarden
];
home.file = {
".config/autostart/bitwarden.desktop" = lib.mkIf cfg.autostart {
source = "${pkgs.bitwarden}/share/applications/bitwarden.desktop";
};
};
};
}