dotfiles/modules/applications/1password.nix

21 lines
464 B
Nix
Raw Normal View History

{ config, pkgs, lib, ... }: {
2022-04-29 02:43:50 +00:00
2022-12-21 21:18:03 +00:00
options = {
"1password" = {
enable = lib.mkEnableOption {
description = "Enable 1Password.";
default = false;
};
2022-04-29 02:43:50 +00:00
};
};
2022-06-14 03:43:49 +00:00
2022-12-21 21:18:03 +00:00
config = lib.mkIf
(config.gui.enable && config."1password".enable && pkgs.stdenv.isLinux) {
unfreePackages = [ "1password" "_1password-gui" ];
home-manager.users.${config.user} = {
home.packages = with pkgs; [ _1password-gui ];
};
};
2022-04-29 02:43:50 +00:00
}