Home Gen509 @ 2025-05-03-15:04 by jonas@comfy-station

This commit is contained in:
2025-05-03 15:04:35 +02:00
parent 9ebf6152a0
commit 31a51c89c3
7 changed files with 248 additions and 181 deletions

View File

@@ -1,54 +1,64 @@
{
config,
lib,
inputs,
pkgs,
...
}: {
programs.firefox = {
enable = true;
}: let
cfg = config.hive.firefox;
in {
options.hive.firefox = {
enable = lib.mkEnableOption "Enable Firefox";
plasmaIntegration = lib.mkEnableOption "Enable Plasma Integration";
passFF = lib.mkEnableOption "Enable PassFF";
};
config = lib.mkIf cfg.enable {
programs.firefox = {
enable = true;
# Default profile
profiles.jonas = {
name = "Jonas";
id = 0;
isDefault = 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}";
}
];
}
];
# 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
plasma-integration
passff
];
# Extensions
extensions = with inputs.firefox-addons.packages."x86_64-linux"; ([
ublock-origin
violentmonkey
]
++ lib.optional cfg.plasmaIntegration plasma-integration
++ lib.optional cfg.passFF passff);
};
};
home.packages =
lib.optional cfg.passFF
pkgs.passff-host;
};
home.packages = with pkgs; [
passff-host
];
}