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 nitrogen # wallpaper manager
]; ];
programs.rofi.pass.enable = true;
xsession = { xsession = {
enable = true; enable = true;

View file

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

View file

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

View file

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