dotfiles/modules/applications/1password.nix
2022-12-21 14:18:03 -07:00

21 lines
464 B
Nix

{ config, pkgs, lib, ... }: {
options = {
"1password" = {
enable = lib.mkEnableOption {
description = "Enable 1Password.";
default = false;
};
};
};
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 ];
};
};
}