Basic configuration for firefox with mutliple profiles - but w/o extensions
This commit is contained in:
parent
acc8ba841d
commit
3c499d4334
2 changed files with 45 additions and 0 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
41
modules/home-manager/firefox.nix
Normal file
41
modules/home-manager/firefox.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue