modules/browsers: move all browsers to the container #19

Merged
pleshevskiy merged 5 commits from browser-container into main 2024-08-28 01:34:36 +03:00
4 changed files with 17 additions and 7 deletions
Showing only changes of commit 165f567d93 - Show all commits

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
{