blob: 0a01090c6ac3ad965664d7384e78b082f9dcd6be (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{ config, lib, pkgs, user, ... }:
with lib;
let
arkenfox = {
owner = "arkenfox";
repo = "user.js";
version = "117.0";
};
in
{
config.home-manager.users.${user} = mkIf (config.xserver.enable) {
programs.firefox = {
enable = true;
profiles."default" = {
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
ublock-origin
multi-account-containers
];
extraConfig = builtins.readFile
( builtins.fetchTarball {
url = "https://github.com/${arkenfox.owner}/${arkenfox.repo}/archive/refs/tags/${arkenfox.version}.tar.gz";
sha256="1pll4fbdn2390n05902l3pkg4rizxghkakpzi1r9z1b7blmk1x4s";
} + "/user.js");
search = {
force = true;
default = "DuckDuckGo";
engines = {
"Nix Packages" = {
urls = [{
template = "https://search.nixos.org/packages";
params = [
{ name = "type"; value = "packages"; }
{ name = "query"; value = "{searchTerms}"; }
];
}];
definedAliases = [ "@np" ];
};
"NixOS Wiki" = {
urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}"; }];
iconUpdateURL = "https://nixos.wiki/favicon.png";
updateInterval = 24 * 60 * 60 * 1000;
definedAliases = [ "@nw" ];
};
};
};
settings = {
"browser.download.dir" = "/home/${user}/dwn";
};
};
};};
}
|