about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-05-23 09:20:17 -0700
committerFranck Cuny <franck@fcuny.net>2024-05-23 09:20:17 -0700
commit49588c5716557635f945752436afb8f16b2230d8 (patch)
tree4a86b1e40d7c72c58095d2a184739a320505fa6d
parentchore: update flake (diff)
downloadworld-49588c5716557635f945752436afb8f16b2230d8.tar.gz
clean up a bunch of home-manager stuff
No need for alacritty, tmux, firefox, and zsh.
Diffstat (limited to '')
-rw-r--r--nix/profiles/home-manager/firefox.nix95
-rw-r--r--nix/profiles/home-manager/personal.nix1
-rw-r--r--nix/profiles/home-manager/shell.nix43
-rw-r--r--nix/profiles/home-manager/work.nix3
-rw-r--r--nix/profiles/home-manager/zsh.nix46
5 files changed, 1 insertions, 187 deletions
diff --git a/nix/profiles/home-manager/firefox.nix b/nix/profiles/home-manager/firefox.nix
deleted file mode 100644
index a982a2e..0000000
--- a/nix/profiles/home-manager/firefox.nix
+++ /dev/null
@@ -1,95 +0,0 @@
-{ pkgs, ... }: {
-  programs.firefox = {
-    enable = true;
-    package = pkgs.firefox-bin;
-    profiles.default = {
-      isDefault = true;
-      extensions = with pkgs.nur.repos.rycee.firefox-addons; [
-        ublock-origin
-        onepassword-password-manager
-      ];
-      bookmarks = [
-        {
-          name = "GitHub Notifications";
-          keyword = "n";
-          url = "https://github.com/notifications?query=is%3Aunread";
-        }
-        {
-          name = "GitHub Pull Requests";
-          keyword = "p";
-          url = "https://github.com/pulls";
-        }
-      ];
-      search = {
-        default = "DuckDuckGo";
-        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" ];
-          };
-          "Google".metaData.hidden = true;
-          "Amazon.com".metaData.hidden = true;
-          "Bing".metaData.hidden = true;
-          "eBay".metaData.hidden = true;
-          "Wikipedia (en)".metaData.alias = "w";
-        };
-        force = true;
-      };
-      settings = {
-        "app.update.auto" = false;
-        "app.shield.optoutstudies.enabled" = false;
-
-        "browser.bookmarks.restore_default_bookmarks" = false;
-        "browser.bookmarks.showMobileBookmarks" = false;
-        "browser.compactmode.show" = true;
-        "browser.urlbar.placeholderName" = "search";
-        "browser.shell.checkDefaultBrowser" = false;
-        "browser.contentblocking.category" = "strict";
-        "browser.startup.page" = 3; # Restore previous windows and tabs on startup.
-        "browser.warnOnQuit" = false;
-        "browser.formfill.enable" = false;
-        "browser.newtabpage.enabled" = false; # Make new tabs blank
-        "browser.newtabpage.activity-stream.feeds.section.topstories" = false;
-        "browser.newtabpage.activity-stream.feeds.telemetry" = false;
-        "browser.newtabpage.activity-stream.feeds.topsites" = false;
-        "browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts.havePinned" = "duckduckgo";
-        "browser.newtabpage.activity-stream.showSponsored" = false;
-        "browser.newtabpage.activity-stream.telemetry" = false;
-        "browser.urlbar.suggest.quicksuggest.nonsponsored" = false;
-        "browser.urlbar.suggest.quicksuggest.sponsored" = false;
-
-        "dom.forms.autocomplete.formautofill" = false; # Disable autofill
-
-        "extensions.formautofill.addresses.enabled" = false;
-        "extensions.formautofill.creditCards.enabled" = false; # Disable credit cards
-        "extensions.htmlaboutaddons.inline-options.enabled" = false;
-        "extensions.htmlaboutaddons.recommendations.enabled" = false;
-        "extensions.pocket.enabled" = false;
-        "extensions.pocket.showHome" = false;
-
-        # Disable Sponsored Top Sites
-        "services.sync.prefs.sync.browser.newtabpage.activity-stream.showSponsoredTopSite" = false;
-
-        "network.http.referer.spoofSource" = true;
-
-        "privacy.donottrackheader.value" = 1;
-        "privacy.donottrackheader.enabled" = true;
-      };
-    };
-  };
-}
diff --git a/nix/profiles/home-manager/personal.nix b/nix/profiles/home-manager/personal.nix
index e535bb4..000e6d8 100644
--- a/nix/profiles/home-manager/personal.nix
+++ b/nix/profiles/home-manager/personal.nix
@@ -4,7 +4,6 @@
 
   imports = [
     ./dev.nix
-    ./firefox.nix
     ./fish.nix
     ./git.nix
     ./shell.nix
diff --git a/nix/profiles/home-manager/shell.nix b/nix/profiles/home-manager/shell.nix
index 2f86232..fe7e4ff 100644
--- a/nix/profiles/home-manager/shell.nix
+++ b/nix/profiles/home-manager/shell.nix
@@ -54,49 +54,6 @@
     SHELL = "${pkgs.fish}/bin/fish";
   };
 
-  programs.alacritty = {
-    enable = true;
-    settings = {
-      env = {
-        TERM = "xterm-256color";
-      };
-      shell = {
-        program = "${pkgs.fish}/bin/fish";
-        args = [
-          "--login"
-          "-c"
-          "tmux attach -t base || tmux new -s base"
-        ];
-      };
-      font = {
-        normal.family = "Monaspace Argon";
-        bold = { style = "Bold"; };
-        size = 16;
-      };
-    };
-  };
-
-  programs.tmux = {
-    enable = true;
-    terminal = "xterm-256color";
-    escapeTime = 0;
-    aggressiveResize = true;
-    baseIndex = 1;
-    shortcut = "z";
-    clock24 = true;
-    shell = "${pkgs.fish}/bin/fish";
-    historyLimit = 50000; # Bigger buffer
-    extraConfig = ''
-      setw -g mouse on
-
-      # Avoid date/time taking up space
-      set -g status-right ""
-      set -g status-right-length 0
-
-      set-option -g renumber-windows on
-    '';
-  };
-
   programs.direnv = {
     enable = true;
     nix-direnv.enable = true;
diff --git a/nix/profiles/home-manager/work.nix b/nix/profiles/home-manager/work.nix
index d1341a6..ea9358e 100644
--- a/nix/profiles/home-manager/work.nix
+++ b/nix/profiles/home-manager/work.nix
@@ -1,10 +1,9 @@
-{ pkgs, self, ... }: {
+{ ... }: {
 
   home.stateVersion = "23.05";
 
   imports = [
     ./dev.nix
-    ./firefox.nix
     ./fish.nix
     ./git.nix
     ./shell.nix
diff --git a/nix/profiles/home-manager/zsh.nix b/nix/profiles/home-manager/zsh.nix
deleted file mode 100644
index e704870..0000000
--- a/nix/profiles/home-manager/zsh.nix
+++ /dev/null
@@ -1,46 +0,0 @@
-{ config, pkgs, ... }:
-{
-  home.packages = with pkgs; [ zsh-completions ];
-
-  programs.zsh = {
-    enable = true;
-    dotDir = ".config/zsh";
-
-    defaultKeymap = "emacs";
-    enableCompletion = true;
-    enableAutosuggestions = true;
-
-    history = {
-      size = 500000;
-      save = 500000;
-      extended = true;
-      ignoreSpace = true;
-      ignoreDups = true;
-      share = true;
-      # see
-      # https://github.com/nix-community/home-manager/blob/32a7da69dc53c9eb5ad0675eb7fdc58f7fe35272/modules/programs/zsh.nix#L537
-      path = "${config.xdg.dataHome}/zsh/zsh_history";
-    };
-
-    localVariables = {
-      # Print timing statistics for everything which takes longer than
-      # 5 seconds of user + system time.
-      REPORTTIME = 5;
-    };
-
-    shellAliases = {
-      ll = "ls -l --color=auto";
-      lt = "ls -ltrh --color=auto";
-      la = "ls -ltrha --color=auto";
-      pkgsearch = "nix search nixpkgs";
-      flup = "nix flake update --commit-lock-file";
-      emacsrescue = "pkill -SIGUSR2 -i emacs"; # then `M-x toggle-debug-on-quit`
-    };
-
-    oh-my-zsh = {
-      enable = true;
-      plugins = [ "git" ];
-      theme = "robbyrussell";
-    };
-  };
-}