1
0
Fork 0

Basic configuration for firefox with mutliple profiles - but w/o extensions

This commit is contained in:
Jan Grosser 2024-03-22 22:00:25 +01:00
parent acc8ba841d
commit 3c499d4334
2 changed files with 45 additions and 0 deletions

View file

@ -15,6 +15,10 @@
# release notes.
home.stateVersion = "23.11"; # Please read the comment before changing.
imports = [
../../modules/home-manager/firefox.nix
];
# The home.packages option allows you to install Nix packages into your
# environment.
home.packages = [

View file

@ -0,0 +1,41 @@
{ config, pkgs, ... }:
{
programs.firefox = {
enable =true;
profiles = {
# Default profile
default = {
id = 0;
name = "Default profile";
settings = {
"dom.security.https_only_mode" = false;
};
search.engines = {
"Nix packages" = {
urls = [{
template = "https://search.nixos.org/packages";
param = [
{ name = "type"; value = "packages"; }
{ name = "query"; value = "{serachTerms}"; }
];
}];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@np" ];
};
};
search.force = true;
};
# Another profile
testing = {
id = 1;
name = "Test profile";
};
};
};
}