firefox config

This commit is contained in:
2024-04-14 19:42:28 +02:00
parent 35eac3f4e1
commit 605bf6246b
4 changed files with 85 additions and 38 deletions

38
home/jonas/firefox.nix Normal file
View File

@@ -0,0 +1,38 @@
{ config, inputs, ... }:
{
programs.firefox = {
enable = true;
# Default profile
profiles.jonas = {
name = "Jonas";
id = 0;
isDefault = true;
# Search
search = {
default = "DuckDuckGo";
order = [ "DuckDuckGo" "Google" ];
force = true;
engines = {
"Nix Packages" = {
urls = [{
template = "https://search.nixos.org/packages";
params = [
{ name = "type"; value = "packages"; }
{ name = "query"; value = "{searchTerms}"; }
];
}];
};
};
};
# Extensions
extensions = with inputs.firefox-addons.packages."x86_64-linux"; [
ublock-origin
violentmonkey
];
};
};
}

View File

@@ -3,6 +3,7 @@
{
imports = [
./plasma.nix
./firefox.nix
];
# Home Manager needs a bit of information about you and the paths it should
@@ -33,36 +34,6 @@
vscode
];
# Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'.
home.file = {
# # Building this configuration will create a copy of 'dotfiles/screenrc' in
# # the Nix store. Activating the configuration will then make '~/.screenrc' a
# # symlink to the Nix store copy.
# ".screenrc".source = dotfiles/screenrc;
# # You can also set the file content immediately.
# ".gradle/gradle.properties".text = ''
# org.gradle.console=verbose
# org.gradle.daemon.idletimeout=3600000
# '';
};
# Home Manager can also manage your environment variables through
# 'home.sessionVariables'. If you don't want to manage your shell through Home
# Manager then you have to manually source 'hm-session-vars.sh' located at
# either
#
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
#
# or
#
# ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh
#
# or
#
# /etc/profiles/per-user/jonas/etc/profile.d/hm-session-vars.sh
#
home.sessionVariables = {
EDITOR = "vim";
};
@@ -106,11 +77,4 @@
theme = "bureau";
};
};
# wayland.windowManager.hyprland = {
# enable = true;
# settings = {
# "$mod" = "SUPER";
# };
# };
}