From 49b85023ec7c0b8bdd1c72801426bd53b9edaceb Mon Sep 17 00:00:00 2001 From: Jake Ginesin Date: Sat, 25 Jan 2025 21:36:39 -0500 Subject: [PATCH] 305 current 2025-01-25 21:36:27 25.05.20241217.d3c42f1 6.6.66 * --- home/home.nix | 2 +- home/{scripts => }/nixos-rebuild.sh | 0 home/programs/firefox/default.nix | 3 +++ home/scripts/termbin/tb.nix | 16 ++++++++++++++++ 4 files changed, 20 insertions(+), 1 deletion(-) rename home/{scripts => }/nixos-rebuild.sh (100%) create mode 100644 home/scripts/termbin/tb.nix diff --git a/home/home.nix b/home/home.nix index efc69a8..507085d 100644 --- a/home/home.nix +++ b/home/home.nix @@ -15,7 +15,7 @@ home.activation.copyScripts = lib.mkAfter '' mkdir -p ~/.scripts - cp -r ${./scripts}/* ~/.scripts/ + cp ${./nixos-rebuild.sh} ~/.scripts/ chmod -R u+w ~/.scripts/ ''; diff --git a/home/scripts/nixos-rebuild.sh b/home/nixos-rebuild.sh similarity index 100% rename from home/scripts/nixos-rebuild.sh rename to home/nixos-rebuild.sh diff --git a/home/programs/firefox/default.nix b/home/programs/firefox/default.nix index 0156255..b639374 100644 --- a/home/programs/firefox/default.nix +++ b/home/programs/firefox/default.nix @@ -273,6 +273,9 @@ ### This is all aesthetic stuff # for tiling window managers expands to the size of the window + # https://support.mozilla.org/en-US/questions/1253302 + "mousewheel.with_control.action" = "1"; + "layout.css.devPixelsPerPx" = 1.25; "extensions.activeThemeID" = "firefox-compact-dark@mozilla.org"; diff --git a/home/scripts/termbin/tb.nix b/home/scripts/termbin/tb.nix new file mode 100644 index 0000000..12f070e --- /dev/null +++ b/home/scripts/termbin/tb.nix @@ -0,0 +1,16 @@ +# scripts.nix +{pkgs, ...}: { + home.packages = with pkgs; [ + (writeShellApplication { + name = "termbin"; + runtimeInputs = with pkgs; [ + netcat + ]; + + text = '' + file=$1 + cat "$1" | nc termbin.com 9999 + ''; + }) + ]; +}