refactor(flake-parts): initial flake-parts configuration
This commit is contained in:
parent
8f67be9e68
commit
5603001d65
230 changed files with 380 additions and 717 deletions
31
inputs/home/modules/desktop/browser/firefox/default.nix
Normal file
31
inputs/home/modules/desktop/browser/firefox/default.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ pkgs, lib, inputs, config, ... }:
|
||||
|
||||
let
|
||||
addons = inputs.firefox-addons.packages.${pkgs.system};
|
||||
cfg = config.homeModules.desktop.browser.firefox;
|
||||
inherit (lib) mkIf;
|
||||
in
|
||||
{
|
||||
|
||||
config = {
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
home.sessionVariables = mkIf cfg.default {
|
||||
BROWSER = "firefox";
|
||||
};
|
||||
|
||||
programs.firefox = mkIf cfg.enable {
|
||||
enable = true;
|
||||
profiles.ooks = {
|
||||
extensions = with addons; [
|
||||
ublock-origin
|
||||
darkreader
|
||||
tridactyl
|
||||
# onepassword-password-manager # cannot get this to work unfree issue.
|
||||
];
|
||||
settings = import ./settings/ooksJs.nix;
|
||||
userChrome = import ./theme/penguinFox.nix;
|
||||
userContent = import ./theme/penguinFoxContent.nix;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue