modules/browsers: use rofi-pass instead of passff-host

This commit is contained in:
Dmitriy Pleshevskiy 2024-08-28 01:33:45 +03:00
parent 5abf88dc22
commit 165f567d93
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2
4 changed files with 17 additions and 7 deletions

View file

@ -65,6 +65,8 @@ in
nitrogen # wallpaper manager
];
programs.rofi.pass.enable = true;
xsession = {
enable = true;

View file

@ -277,10 +277,13 @@ myKeys conf =
("M-S-<Return>", spawn $ XMonad.terminal conf),
-- launch a 'flameshot' to screenshot
("M-S-s", safeSpawn "flameshot" ["gui"]),
-- launch 'librewolf' browser
("M-S-b", spawn "librewolf"),
-- launch browsers
("M-S-b", spawn "cont-librewolf"),
("M-S-t", spawn "cont-tor-browser"),
-- launch 'dmenu_run' to choose applications
("M-p", spawn "dmenu_run")
("M-r", spawn "dmenu_run"),
-- launch 'rofi-pass' to use password manager
("M-p", spawn "rofi-pass")
-- Open calculator
-- ("<XF86Calculator>", spawn "gnome-calculator"),
]

View file

@ -91,7 +91,12 @@ in
config = { pkgs, ... }: {
system.stateVersion = "23.11";
# Inherit configs from host
networking.hosts = config.networking.hosts;
fonts = {
inherit (config.fonts) enableDefaultPackages packages;
fontconfig = { inherit (config.fonts.fontconfig) defaultFonts; };
};
services.openssh = {
enable = true;

View file

@ -1,11 +1,11 @@
{ config, pkgs, lib, inputs, ... }:
{ pkgs, lib, inputs, ... }:
let
isPassEnabled = config.local.programs.pass.enable;
# isPassEnabled = config.local.programs.pass.enable;
policiesJson = pkgs.callPackage ./policies.nix {
firefoxAddons = inputs.firefox-addons.packages."${pkgs.system}";
withPassffAddon = isPassEnabled;
# withPassffAddon = isPassEnabled;
withRedirectorAddon = true;
withSidebarTabsAddon = true;
withAllSearchEngines = true;
@ -13,7 +13,7 @@ let
librewolf' = with pkgs.unstable; librewolf.override {
extraPoliciesFiles = librewolf.unwrapped.extraPoliciesFiles ++ [ policiesJson ];
nativeMessagingHosts = lib.optional isPassEnabled passff-host;
# nativeMessagingHosts = lib.optional isPassEnabled passff-host;
};
in
{