mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-14 04:52:56 +00:00
21 lines
464 B
Nix
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 ];
|
|
};
|
|
};
|
|
|
|
}
|