firefox, emacs

This commit is contained in:
Gregory Burd 2023-09-24 14:09:05 -04:00
parent 13b6506163
commit 3af37d3cef
Signed by: greg
GPG key ID: AEFACC3FC495AF89
4 changed files with 1172 additions and 76 deletions

View file

@ -1,18 +1,99 @@
{ config, pkgs, lib, ... }:
{ config, pkgs, lib, theme, ... }:
{
programs.browserpass.enable = true;
programs.firefox = {
enable = true;
package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
extraPolicies = {
CaptivePortal = false;
DisableFirefoxStudies = true;
DisablePocket = true;
DisableTelemetry = true;
DisableFirefoxAccounts = false;
NoDefaultBookmarks = true;
OfferToSaveLogins = false;
OfferToSaveLoginsDefault = false;
PasswordManagerEnabled = false;
FirefoxHome = {
Search = true;
Pocket = false;
Snippets = false;
TopSites = false;
Highlights = false;
};
UserMessaging = {
ExtensionRecommendations = false;
SkipOnboarding = true;
};
};
};
profiles.gburd = {
id = 0;
bookmarks = { };
extensions = with pkgs.inputs.firefox-addons; [
ublock-origin
autoplay-no-more
bypass-paywalls-clean
proton-pass
i-dont-care-about-cookies
kagi-search-for-firefox
clearurls
decentraleyes
disconnect
duckduckgo-privacy-essentials
floccus
ghostery
https-everywhere
languagetool
# onetab
privacy-badger
privacy-badger
privacy-redirect
proton-pass
react-devtools
ublock-origin
];
bookmarks = { };
search = {
force = true;
default = "Kagi";
engines = {
"Nix Packages" = {
urls = [{
template = "https://search.nixos.org/packages";
params = [
{ name = "type"; value = "packages"; }
{ name = "query"; value = "{searchTerms}"; }
];
}];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@np" ];
};
"NixOS Wiki" = {
urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}"; }];
iconUpdateURL = "https://nixos.wiki/favicon.png";
updateInterval = 24 * 60 * 60 * 1000;
definedAliases = [ "@nw" ];
};
"Wikipedia (en)".metaData.alias = "@wiki";
"Google".metaData.hidden = true;
"Amazon.com".metaData.hidden = true;
"Bing".metaData.hidden = true;
"eBay".metaData.hidden = true;
};
extraConfig = ''
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
user_pref("full-screen-api.ignore-widgets", true);
user_pref("media.ffmpeg.vaapi.enabled", true);
user_pref("media.rdd-vpx.enabled", true);
'';
userChrome = ''
# a css
'';
userContent = ''
Here too
'';
settings = {
"general.smoothScroll" = true;
"browser.disableResetPrompt" = true;
"browser.download.panel.shown" = true;
"browser.download.useDownloadDir" = false;

File diff suppressed because it is too large Load diff

View file

@ -4,23 +4,22 @@
enable = true;
package = pkgs.emacs-gtk;
overrides = final: _prev: {
nix-theme = final.callPackage ./theme.nix { inherit config; };
};
extraPackages = epkgs: with epkgs; [
nix-theme
# overrides = final: _prev: {
# nix-theme = final.callPackage ./theme.nix { inherit config; };
# };
# extraPackages = epkgs: with epkgs; [
# nix-theme
# nix-mode
# magit
# lsp-mode
# which-key
# mmm-mode
nix-mode
magit
lsp-mode
which-key
mmm-mode
evil
evil-org
evil-collection
evil-surround
];
# evil
# evil-org
# evil-collection
# evil-surround
# ];
extraConfig = builtins.readFile ./init.el;
};

View file

@ -1,58 +1,24 @@
(scroll-bar-mode -1)
(tool-bar-mode -1)
(tooltip-mode -1)
(set-fringe-mode 10)
(menu-bar-mode -1)
(set-face-attribute 'default nil :font "FiraCode Nerd Font" :height 120)
(setq visible-bell t)
(global-display-line-numbers-mode)
(setq display-line-numbers-type 'relative)
(setq base16-theme-256-color-source "base16-shell")
(load-theme 'base16-${config.colorscheme.slug} t)
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(require 'nix-mode)
(add-to-list 'auto-mode-alist '("\\.nix\\'" . nix-mode))
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(setq org-directory "~/Documents/Org")
(setq org-agenda-files (directory-files-recursively org-directory "\\.org$"))
(require 'lsp-mode)
(add-hook 'nix-mode-hook #'lsp)
(require 'which-key)
(which-key-mode)
(require 'mmm-mode)
(setq mmm-global-mode 't)
(mmm-add-classes
'((nix-block
:front " \/\* \\([a-zA-Z0-9_-]+\\) \*\/ '''[^']"
:back "''';"
;; :save-matches 1
;; :delimiter-mode nil
;; :match-submode identity
:submode org
)))
(mmm-add-mode-ext-class 'nix-mode nil 'nix-block)
(setq evil-want-keybinding nil)
(require 'evil)
(evil-mode 1)
(setq evil-jumps-across-buffers t)
(require 'evil-org)
(add-hook 'org-mode-hook 'evil-org-mode)
(evil-org-set-key-theme '(navigation insert textobjects additional calendar))
(require 'evil-org-agenda)
(evil-org-agenda-set-keys)
(evil-collection-init)
(global-evil-surround-mode 1)
(require 'org-install)
(require 'ob-tangle)
(org-babel-load-file (expand-file-name "burd.org" user-emacs-directory))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages
(quote
(yaml-mode ws-butler writegood-mode web-mode toml-mode terraform-mode solarized-theme sml-mode smex scala-mode rvm rust-mode restclient python-pep8 python-mode puppet-mode php-mode pastebin paredit o-blog nodejs-repl nixos-options nix-mode multi-web-mode marmalade markdown-mode magit lua-mode intellij-theme htmlize haskell-mode haml-mode hackernews graphviz-dot-mode google-this google-c-style go-mode gist flycheck-rust flycheck-pos-tip flycheck-ocaml flycheck-google-cpplint flycheck-cask flx-isearch flx-ido feature-mode erlang eredis elixir-mode elixir-mix deft csharp-mode company-cmake company-c-headers color-theme-sanityinc-tomorrow coffee-mode cmake-mode clojure-mode autopair ag ac-slime))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)