organize and configure librewolf
This commit is contained in:
22
modules/core/boot.nix
Normal file
22
modules/core/boot.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
den.aspects.boot = {
|
||||
nixos = {
|
||||
boot = {
|
||||
# kernelPackages = lib.mkForce pkgs.linuxPackages_zen;
|
||||
|
||||
initrd.checkJournalingFS = false;
|
||||
|
||||
loader = {
|
||||
grub.splashImage = null;
|
||||
|
||||
systemd-boot = {
|
||||
enable = true;
|
||||
configurationLimit = 25;
|
||||
};
|
||||
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
26
modules/core/essentials.nix
Normal file
26
modules/core/essentials.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
den.aspects.essentials = {
|
||||
nixos = { pkgs, ... }: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
comma
|
||||
fastfetch
|
||||
git
|
||||
home-manager
|
||||
inetutils
|
||||
micro
|
||||
nh
|
||||
nil
|
||||
nixd
|
||||
nixfmt
|
||||
nix-index
|
||||
nix-output-monitor
|
||||
nix-prefetch
|
||||
nvd
|
||||
psmisc
|
||||
tree
|
||||
unzip
|
||||
wget
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
23
modules/core/locale.nix
Normal file
23
modules/core/locale.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
den.aspects.locale = {
|
||||
nixos = {
|
||||
time.timeZone = "America/Chicago";
|
||||
|
||||
i18n = {
|
||||
defaultLocale = "en_US.UTF-8";
|
||||
|
||||
extraLocaleSettings = {
|
||||
LC_ADDRESS = "en_US.UTF-8";
|
||||
LC_IDENTIFICATION = "en_US.UTF-8";
|
||||
LC_MEASUREMENT = "en_US.UTF-8";
|
||||
LC_MONETARY = "en_US.UTF-8";
|
||||
LC_NAME = "en_US.UTF-8";
|
||||
LC_NUMERIC = "en_US.UTF-8";
|
||||
LC_PAPER = "en_US.UTF-8";
|
||||
LC_TELEPHONE = "en_US.UTF-8";
|
||||
LC_TIME = "en_US.UTF-8";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
10
modules/core/security.nix
Normal file
10
modules/core/security.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
den.aspects.security = {
|
||||
nixos = {
|
||||
security.sudo = {
|
||||
enable = true;
|
||||
wheelNeedsPassword = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -4,10 +4,17 @@
|
||||
includes = with den.aspects; [
|
||||
den.default
|
||||
den.provides.home-manager
|
||||
|
||||
dns
|
||||
openssh
|
||||
|
||||
# cloudflared
|
||||
syncthing
|
||||
|
||||
catppuccin
|
||||
|
||||
fish
|
||||
|
||||
#cloudflared
|
||||
searxng
|
||||
copyparty
|
||||
glances
|
||||
@@ -17,10 +24,7 @@
|
||||
redlib
|
||||
# sish
|
||||
vscode-server
|
||||
dns
|
||||
openssh
|
||||
gitea
|
||||
catppuccin
|
||||
|
||||
(tunnel 3001 "tvtun")
|
||||
(tunnel 8888 "search")
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
{
|
||||
{ den, ... }: {
|
||||
den.default = {
|
||||
nixos = { pkgs, ... }: {
|
||||
includes = with den.aspects; [
|
||||
boot
|
||||
security
|
||||
locale
|
||||
essentials
|
||||
];
|
||||
|
||||
nixos = { ... }: {
|
||||
imports = [
|
||||
/etc/nixos/hardware-configuration.nix
|
||||
];
|
||||
@@ -17,86 +24,16 @@
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs = {
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
};
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
nix = {
|
||||
optimise.automatic = true;
|
||||
settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
};
|
||||
|
||||
security = {
|
||||
sudo = {
|
||||
enable = true;
|
||||
wheelNeedsPassword = false;
|
||||
};
|
||||
};
|
||||
|
||||
boot = {
|
||||
#kernelPackages = lib.mkForce pkgs.linuxPackages_zen;
|
||||
|
||||
initrd.checkJournalingFS = false;
|
||||
|
||||
loader = {
|
||||
grub.splashImage = null;
|
||||
|
||||
systemd-boot = {
|
||||
enable = true;
|
||||
configurationLimit = 25;
|
||||
};
|
||||
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
comma
|
||||
fastfetch
|
||||
git
|
||||
home-manager
|
||||
inetutils
|
||||
micro
|
||||
nh
|
||||
nil
|
||||
nixd
|
||||
nixfmt
|
||||
nix-index
|
||||
nix-output-monitor
|
||||
nix-prefetch
|
||||
nvd
|
||||
psmisc
|
||||
tree
|
||||
unzip
|
||||
wget
|
||||
tree
|
||||
];
|
||||
|
||||
time.timeZone = "America/Chicago";
|
||||
|
||||
i18n = {
|
||||
defaultLocale = "en_US.UTF-8";
|
||||
|
||||
extraLocaleSettings = {
|
||||
LC_ADDRESS = "en_US.UTF-8";
|
||||
LC_IDENTIFICATION = "en_US.UTF-8";
|
||||
LC_MEASUREMENT = "en_US.UTF-8";
|
||||
LC_MONETARY = "en_US.UTF-8";
|
||||
LC_NAME = "en_US.UTF-8";
|
||||
LC_NUMERIC = "en_US.UTF-8";
|
||||
LC_PAPER = "en_US.UTF-8";
|
||||
LC_TELEPHONE = "en_US.UTF-8";
|
||||
LC_TIME = "en_US.UTF-8";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
homeManager = {
|
||||
home = {
|
||||
stateVersion = "26.05";
|
||||
};
|
||||
home.stateVersion = "26.05";
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -2,30 +2,39 @@
|
||||
den.aspects.laptop = {
|
||||
includes = with den.aspects; [
|
||||
den.default
|
||||
den.aspects.amdgpu
|
||||
den.provides.home-manager
|
||||
|
||||
amdgpu
|
||||
|
||||
cosmic
|
||||
firefox
|
||||
audio
|
||||
|
||||
den.provides.home-manager
|
||||
stylix
|
||||
syncthing
|
||||
swap
|
||||
cloudflare-warp
|
||||
development
|
||||
cad
|
||||
virtualisation
|
||||
flatpak
|
||||
fish
|
||||
|
||||
dns
|
||||
openssh
|
||||
cloudflare-warp
|
||||
|
||||
syncthing
|
||||
|
||||
stylix
|
||||
catppuccin
|
||||
music
|
||||
social
|
||||
gaming
|
||||
|
||||
fish
|
||||
flatpak
|
||||
development
|
||||
cad
|
||||
compatibility
|
||||
utilities
|
||||
janitor
|
||||
|
||||
firefox
|
||||
librewolf
|
||||
|
||||
music
|
||||
social
|
||||
gaming
|
||||
];
|
||||
|
||||
nixos = {
|
||||
|
||||
@@ -3,30 +3,38 @@
|
||||
den.aspects.nix = {
|
||||
includes = with den.aspects; [
|
||||
den.default
|
||||
#amdgpu
|
||||
den.provides.home-manager
|
||||
|
||||
nvidia
|
||||
|
||||
cosmic
|
||||
firefox
|
||||
audio
|
||||
|
||||
den.provides.home-manager
|
||||
stylix
|
||||
nvidia
|
||||
syncthing
|
||||
swap
|
||||
#cloudflare-warp
|
||||
development
|
||||
#cad
|
||||
virtualisation
|
||||
flatpak
|
||||
fish
|
||||
|
||||
dns
|
||||
openssh
|
||||
# cloudflare-warp
|
||||
|
||||
syncthing
|
||||
|
||||
stylix
|
||||
catppuccin
|
||||
|
||||
fish
|
||||
flatpak
|
||||
development
|
||||
# cad
|
||||
compatibility
|
||||
utilities
|
||||
|
||||
firefox
|
||||
librewolf
|
||||
|
||||
music
|
||||
social
|
||||
gaming
|
||||
compatibility
|
||||
utilities
|
||||
];
|
||||
|
||||
nixos = {
|
||||
|
||||
@@ -1,24 +1,201 @@
|
||||
{
|
||||
{ inputs, ... }: {
|
||||
den.aspects.librewolf = {
|
||||
homeManager = {
|
||||
homeManager = { pkgs, ... }: {
|
||||
programs.librewolf = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
"browser.startup.homepage" = "https://search.bug.tools";
|
||||
"browser.startup.page" = 1;
|
||||
|
||||
"datareporting.healthreport.uploadEnabled" = false;
|
||||
"datareporting.policy.dataSubmissionEnabled" = false;
|
||||
"toolkit.telemetry.enabled" = false;
|
||||
"toolkit.telemetry.unified" = false;
|
||||
"toolkit.telemetry.archive.enabled" = false;
|
||||
"toolkit.telemetry.newProfilePing.enabled" = false;
|
||||
"toolkit.telemetry.shutdownPingSender.enabled" = false;
|
||||
"toolkit.telemetry.updatePing.enabled" = false;
|
||||
"toolkit.telemetry.bhrPing.enabled" = false;
|
||||
"toolkit.telemetry.firstShutdownPing.enabled" = false;
|
||||
"toolkit.telemetry.coverage.opt-out" = true;
|
||||
"toolkit.coverage.opt-out" = true;
|
||||
"app.shield.optoutstudies.enabled" = false;
|
||||
"app.normandy.enabled" = false;
|
||||
"app.normandy.api_url" = "";
|
||||
"breakpad.reportURL" = "";
|
||||
"browser.tabs.crashReporting.sendReport" = false;
|
||||
"browser.crashReports.unsubmittedCheck.enabled" = false;
|
||||
"browser.crashReports.unsubmittedCheck.autoSubmit2" = false;
|
||||
|
||||
"privacy.resistFingerprinting.letterboxing" = true;
|
||||
"privacy.donottrackheader.enabled" = true;
|
||||
"privacy.globalprivacycontrol.enabled" = true;
|
||||
|
||||
"browser.search.separatePrivateDefault" = false;
|
||||
|
||||
"browser.download.autohideButton" = true;
|
||||
"browser.quitShortcut.disabled" = true;
|
||||
"browser.sessionstore.resume_session_once" = true;
|
||||
|
||||
"browser.cache.memory.capacity" = 65536;
|
||||
"browser.sessionstore.interval" = 60000;
|
||||
"browser.sessionstore.max_tabs_undo" = 10;
|
||||
"browser.sessionstore.max_windows_undo" = 1;
|
||||
"browser.tabs.unloadOnLowMemory" = true;
|
||||
|
||||
"gfx.webrender.all" = true;
|
||||
"gfx.canvas.accelerated" = true;
|
||||
"media.hardware-video-decoding.force-enabled" = true;
|
||||
|
||||
"network.http.max-connections" = 1500;
|
||||
"network.http.max-persistent-connections-per-server" = 10;
|
||||
"network.prefetch-next" = false;
|
||||
|
||||
"browser.tabs.animate" = false;
|
||||
"browser.fullscreen.animate" = false;
|
||||
};
|
||||
|
||||
# set default search engine to search.bug.tools (searxng)
|
||||
profiles.default = {
|
||||
search = {
|
||||
force = true;
|
||||
|
||||
default = "search.bug.tools";
|
||||
|
||||
# and add stylus, tampermonkey, sponsorblock, dearrow, cookie quick manager
|
||||
engines = {
|
||||
"search.bug.tools" = {
|
||||
urls = [
|
||||
{
|
||||
template = "https://search.bug.tools/search";
|
||||
params = [
|
||||
{ name = "q"; value = "{searchTerms}"; }
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
icon = "https://search.bug.tools/favicon.ico";
|
||||
definedAliases = [ "@s" "@sq" ];
|
||||
};
|
||||
|
||||
"NixOS Packages" = {
|
||||
urls = [
|
||||
{
|
||||
template = "https://search.nixos.org/packages";
|
||||
params = [
|
||||
{ name = "channel"; value = "unstable"; }
|
||||
{ name = "query"; value = "{searchTerms}"; }
|
||||
];
|
||||
}
|
||||
];
|
||||
icon = "https://search.nixos.org/favicon.png";
|
||||
definedAliases = [ "@np" ];
|
||||
};
|
||||
|
||||
"NixOS Options" = {
|
||||
urls = [
|
||||
{
|
||||
template = "https://search.nixos.org/options";
|
||||
params = [
|
||||
{ name = "channel"; value = "unstable"; }
|
||||
{ name = "query"; value = "{searchTerms}"; }
|
||||
];
|
||||
}
|
||||
];
|
||||
icon = "https://search.nixos.org/favicon.png";
|
||||
definedAliases = [ "@no" ];
|
||||
};
|
||||
|
||||
"Home Manager Options" = {
|
||||
urls = [
|
||||
{
|
||||
template = "https://home-manager-options.extranix.com/";
|
||||
params = [
|
||||
{ name = "query"; value = "{searchTerms}"; }
|
||||
{ name = "release"; value = "master"; }
|
||||
];
|
||||
}
|
||||
];
|
||||
icon = "https://home-manager-options.extranix.com/images/favicon.png";
|
||||
definedAliases = [ "@hm" ];
|
||||
};
|
||||
|
||||
google.metaData.hidden = true;
|
||||
bing.metaData.hidden = true;
|
||||
amazondotcom-us.metaData.hidden = true;
|
||||
ebay.metaData.hidden = true;
|
||||
|
||||
wikipedia.metaData = {
|
||||
hidden = false;
|
||||
alias = "@w";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
extensions = {
|
||||
force = true;
|
||||
settings = {
|
||||
"{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}" = {
|
||||
force = true;
|
||||
settings = inputs.catppuccin-userstyles-nix.stylusSettings.${pkgs.stdenv.hostPlatform.system} {
|
||||
global = {
|
||||
lightFlavor = "mocha";
|
||||
darkFlavor = "mocha";
|
||||
accentColor = "mauve";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
policies = {
|
||||
BlockAboutConfig = true;
|
||||
};
|
||||
OverrideFirstRunPage = "";
|
||||
OverridePostUpdatePage = "";
|
||||
|
||||
# https://github.com/nix-community/nur-combined/blob/main/repos/rycee/pkgs/firefox-addons/generated-firefox-addons.nix
|
||||
BlockAboutConfig = true;
|
||||
|
||||
DisableTelemetry = true;
|
||||
DisableFirefoxStudies = true;
|
||||
DisableFeedbackCommands = true;
|
||||
DisableCrashReporter = true;
|
||||
|
||||
DisablePocket = true;
|
||||
|
||||
# DisableFirefoxAccounts = true;
|
||||
|
||||
ExtensionSettings = let
|
||||
extension = slug: {
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/${slug}/latest.xpi";
|
||||
installation_mode = "force_installed";
|
||||
private_browsing = true;
|
||||
};
|
||||
in
|
||||
{
|
||||
"*".installation_mode = "blocked";
|
||||
|
||||
"{1b66b5ad-408f-4300-aac6-55a68b2b24ff}" = extension "catppuccin-mocha-no-borders";
|
||||
|
||||
"{bbb880ce-43c9-47ae-b746-c3e0096c5b76}" = extension "catppuccin-web-file-icons";
|
||||
|
||||
"{60f82f00-9ad5-4de5-b31c-b16a47c51558}" = extension "cookie-quick-manager";
|
||||
|
||||
"{88ebde3a-4581-4c6b-8019-2a05a9e3e938}" = extension "hide-youtube-shorts";
|
||||
|
||||
"{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}" = extension "styl-us";
|
||||
|
||||
# "firefox@tampermonkey.net" = extension "tampermonkey";
|
||||
|
||||
"deArrow@ajay.app" = extension "dearrow";
|
||||
|
||||
"sponsorBlocker@ajay.app" = extension "sponsorblock";
|
||||
|
||||
"uBlock0@raymondhill.net" = extension "ublock-origin";
|
||||
|
||||
# lesspass
|
||||
# user agent switcher
|
||||
# return youtube dislike
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
{
|
||||
den.aspects.fish = {
|
||||
nixos = {
|
||||
nixos = { pkgs, ...}: {
|
||||
programs.fish.shellAliases = {
|
||||
box = "ssh box.bug.tools";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs.fishPlugins; [
|
||||
done
|
||||
sponge
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
nixos = { pkgs, ... }: {
|
||||
users.users.bug.packages = with pkgs; [
|
||||
euphonica
|
||||
rhythmbox
|
||||
];
|
||||
|
||||
services.flatpak.packages = [
|
||||
|
||||
Reference in New Issue
Block a user