mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-09 10:33:51 +00:00
71 lines
1.9 KiB
Nix
71 lines
1.9 KiB
Nix
{ pkgs, lib, config, inputs, userName, True, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.module.programs.gui.floorp;
|
|
customAddons = pkgs.callPackage ./addons.nix {
|
|
inherit (inputs.firefox-addons.lib."x86_64-linux") buildFirefoxXpiAddon;
|
|
};
|
|
in {
|
|
options = { module.programs.gui.floorp = { enable = mkEnableOption ""; }; };
|
|
|
|
imports = [ ./user ./settings.nix ];
|
|
config = mkIf cfg.enable {
|
|
programs.floorp = True // {
|
|
profiles.${userName} = {
|
|
id = 0;
|
|
isDefault = true;
|
|
name = "${userName}";
|
|
extensions = with inputs.firefox-addons.packages."x86_64-linux";
|
|
[
|
|
#VERY IMPORTANT
|
|
ublock-origin
|
|
sponsorblock
|
|
darkreader
|
|
vimium-c
|
|
censor-tracker
|
|
|
|
# MISC
|
|
tabcenter-reborn
|
|
firefox-color
|
|
stylus
|
|
translate-web-pages
|
|
] ++ (with customAddons; [ torrserver-adder ]);
|
|
};
|
|
policies = {
|
|
CaptivePortal = false;
|
|
DisableFirefoxStudies = true;
|
|
DisablePocket = true;
|
|
DisableTelemetry = true;
|
|
DisableFormHistory = true;
|
|
DisplayBookmarksToolbar = false;
|
|
DontCheckDefaultBrowser = true;
|
|
DisableProfileRefresh = true;
|
|
PromptForDownloadLocation = false;
|
|
NetworkPrediction = false;
|
|
showSearchBar = true;
|
|
DisableSetDesktopBackground = true;
|
|
LegacyProfiles = true;
|
|
ManualAppUpdateOnly = true;
|
|
DisableFirefoxScreenshots = true;
|
|
HardwareAcceleration = true;
|
|
PasswordManagerEnabled = true;
|
|
FirefoxHome = {
|
|
Pocket = false;
|
|
Snippets = false;
|
|
};
|
|
SanitizeOnShutdown = {
|
|
Cache = true;
|
|
History = false;
|
|
Cookies = false;
|
|
Downloads = true;
|
|
FormData = true;
|
|
Sessions = true;
|
|
OfflineApps = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|