feat(firefox): add plugins through nix

stylix
Moritz Böhme 2023-10-10 11:51:41 +02:00
parent 7d54b6d42b
commit 1e335c8195
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
2 changed files with 26 additions and 6 deletions

View File

@ -16,6 +16,7 @@
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix"; pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";
stable.url = "github:nixos/nixpkgs/nixos-23.05"; stable.url = "github:nixos/nixpkgs/nixos-23.05";
nur.url = "github:nix-community/NUR";
nix-index-database.url = "github:Mic92/nix-index-database"; nix-index-database.url = "github:Mic92/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs"; nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
@ -79,6 +80,10 @@
inherit (prev) system; inherit (prev) system;
overlays = defaultOverlays; overlays = defaultOverlays;
}; };
nur = import inputs.nur {
pkgs = prev;
nurpkgs = prev;
};
} }
) )
]; ];

View File

@ -1,6 +1,7 @@
{ config { config
, lib , lib
, inputs , inputs
, pkgs
, ... , ...
}: }:
@ -33,13 +34,27 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
home-manager.users.moritz.programs.firefox = { home-manager.users.moritz.programs.firefox = {
enable = true; enable = true;
profiles."default".extraConfig = mkIf cfg.arkenfox.enable '' profiles."default" = {
extraConfig = mkIf cfg.arkenfox.enable ''
// Arkenfox user.js // Arkenfox user.js
${arkenfox} ${arkenfox}
// Overrides // Overrides
${cfg.arkenfox.overrides} ${cfg.arkenfox.overrides}
''; '';
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
darkreader
firefox-color
istilldontcareaboutcookies
kagi-search
keepassxc-browser
languagetool
multi-account-containers
ublock-origin
wikiwand-wikipedia-modernized
vimium
];
};
}; };
}; };
} }