diff --git a/modules/applications/1password.nix b/modules/applications/1password.nix index 935b8fa..d453003 100644 --- a/modules/applications/1password.nix +++ b/modules/applications/1password.nix @@ -15,9 +15,11 @@ in with lib; { }; }; - config = mkIf (cfg.gui.enable || cfg.cli.enable) { + config = mkIf enable { home-manager.users.james = { - home.packages = with pkgs; [ _1password _1password-gui ]; + home.packages = with pkgs; + optionals (cfg.gui.enable) [ _1password-gui ] + ++ optionals (cfg.cli.enable) [ _1password ]; }; }; }