Fixed firefox home-manager module

This commit is contained in:
xqtc161 2024-02-22 19:01:16 +01:00
parent eda95098d4
commit 69b35fe1e2
3 changed files with 35 additions and 15 deletions

View file

@ -2,6 +2,7 @@
{
imports = [
./modules/nixvim.nix
./modules/firefox.nix
];
home.username = "xqtc";
home.homeDirectory = "/home/xqtc";
@ -103,14 +104,14 @@ $character'';
home.file."~/.local/share/fonts/AppleColorEmoji.ttf".source = ./config-files/AppleColorEmoji.ttf;
programs.firefox = {
enable = true;
package = pkgs.firefox.override {
cfg = {
enableGnomeExtensions = true;
};
};
};
#programs.firefox = {
# enable = true;
# package = pkgs.firefox.override {
# cfg = {
# enableGnomeExtensions = true;
# };
# };
#};
wayland.windowManager.hyprland = {
enable = true;
package = pkgs.hyprland;

View file

@ -1,4 +1,6 @@
{ inputs, outputs, config, pkgs, ... }: {
{ inputs, outputs, config, pkgs, ... }:
with inputs;
{
home.sessionVariables.DEFAULT_BROWSER = "${pkgs.firefox}/bin/firefox";
@ -19,9 +21,17 @@
noscript
];
search = {
default = "DuckDuckGo";
default = "SearX";
force = true;
engines = {
"SearX" = {
urls = [{
template = "https://searx.org/search";
params = [
{ name = "q"; value = "{searchTerms}"; }
];
}];
};
"Nix Packages" = {
urls = [{
template = "https://search.nixos.org/packages";
@ -34,6 +44,18 @@
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@np" ];
};
"Nix Options" = {
urls = [{
template = "https://search.nixos.org/options";
params = [
{ name = "type"; value = "options"; }
{ name = "query"; value = "{searchTerms}"; }
];
}];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@no" ];
};
"NixOS Wiki" = {
urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}"; }];
@ -51,7 +73,7 @@
"app.normandy.first_run" = false;
"app.shield.optoutstudies.enabled" = false;
"privacy.donotttrackheader.enabled" = true;
"browser.startup.homepage" = "https://start.duckduckgo.com";
"browser.startup.homepage" = "https://xqtc161.github.io";
"browser.search.region" = "DE";
"browser.search.isUS" = false;
"browser.theme.content-theme" = "0";
@ -67,9 +89,6 @@
"toolkit.legacyUserProfileCustomizations.stylesheets" = true; # Needed to allow userChrome.css
};
userChrome = ''
#TabsToolbar {
display: none; !important
}
#sidebar-header {
display: none;
}

View file

@ -4,7 +4,7 @@
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = inputs;
home-manager.extraSpecialArgs = {inherit inputs;};
home-manager.users.xqtc = {...}: {imports = [ ../home inputs.nixvim.homeManagerModules.nixvim ]; };
};
}