diff options
| author | Fuwn <[email protected]> | 2024-08-28 20:36:04 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-08-28 20:36:04 -0700 |
| commit | f3c31e4ad7fab36e151f3a2e207fafb1eda1a787 (patch) | |
| tree | e265a1a5270b4522049110b8bc5aa13fda142c2f /home/ebisu/meta/network | |
| parent | many (diff) | |
| download | nixos-config-f3c31e4ad7fab36e151f3a2e207fafb1eda1a787.tar.xz nixos-config-f3c31e4ad7fab36e151f3a2e207fafb1eda1a787.zip | |
hi
Diffstat (limited to 'home/ebisu/meta/network')
| -rw-r--r-- | home/ebisu/meta/network/default.nix | 6 | ||||
| -rw-r--r-- | home/ebisu/meta/network/smolnet/bollux/default.nix | 65 | ||||
| -rw-r--r-- | home/ebisu/meta/network/smolnet/bollux/fix_lesskey_nag.patch | 13 | ||||
| -rw-r--r-- | home/ebisu/meta/network/smolnet/default.nix | 12 | ||||
| -rw-r--r-- | home/ebisu/meta/network/tools/default.nix | 11 | ||||
| -rw-r--r-- | home/ebisu/meta/network/tools/http/default.nix | 8 | ||||
| -rw-r--r-- | home/ebisu/meta/network/tools/http/httpie/default.nix | 6 | ||||
| -rw-r--r-- | home/ebisu/meta/network/tools/http/wget.nix | 8 | ||||
| -rw-r--r-- | home/ebisu/meta/network/tools/http/yaak/default.nix | 28 | ||||
| -rw-r--r-- | home/ebisu/meta/network/tools/shark/default.nix | 8 | ||||
| -rw-r--r-- | home/ebisu/meta/network/tools/tcp/default.nix | 12 |
11 files changed, 177 insertions, 0 deletions
diff --git a/home/ebisu/meta/network/default.nix b/home/ebisu/meta/network/default.nix new file mode 100644 index 0000000..a7ea06e --- /dev/null +++ b/home/ebisu/meta/network/default.nix @@ -0,0 +1,6 @@ +{ + imports = [ + ./smolnet + ./tools + ]; +} diff --git a/home/ebisu/meta/network/smolnet/bollux/default.nix b/home/ebisu/meta/network/smolnet/bollux/default.nix new file mode 100644 index 0000000..4d26eee --- /dev/null +++ b/home/ebisu/meta/network/smolnet/bollux/default.nix @@ -0,0 +1,65 @@ +{ pkgs, lib, ... }: +let + bollux = + pkgs.stdenvNoCC.mkDerivation rec { + pname = "bollux"; + version = "0.4.1"; + + nativeBuildInputs = [ + pkgs.makeWrapper + ]; + + buildInputs = [ + pkgs.bashInteractive + ]; + + dontBuild = true; + + makeFlags = [ + "PREFIX=$(out)" + ]; + + src = pkgs.fetchFromGitea { + domain = "tildegit.org"; + owner = "acdw"; + repo = "bollux"; + rev = "f472e60f1164f0dc025d06db2a13ff4e8ebee1a2"; + hash = "sha256-mo2qWCPfW+dUaYcJLsos/vR5nJ8n1eABy8Zy8OZsfVg="; + }; + + patches = [ + # https://tildegit.org/acdw/bollux/issues/13#issuecomment-9786 + ./fix_lesskey_nag.patch + ]; + + postInstall = '' + wrapProgram $out/bin/bollux --prefix PATH : ${lib.makeBinPath [ + pkgs.bashInteractive + pkgs.iconv + pkgs.openssl + pkgs.less + pkgs.coreutils + ]} + ''; + + meta = with lib; { + description = "a Gemini browser in like, idk, 96% pure Bash"; + homepage = "https://tildegit.org/acdw/bollux"; + license = licenses.mit; + platforms = platforms.all; + mainProgram = "bollux"; + }; + }; +in +{ + home.packages = [ + # I'll update this later and move the above derivation to its own package + # once I push my entire NixOS system configuration. + # (pkgs.callPackage /path/to/pkgs/bollux.nix { + # src = bollux; + # }) + bollux + ]; + + xdg.configFile."bollux/bollux.conf".text = ''''; +} diff --git a/home/ebisu/meta/network/smolnet/bollux/fix_lesskey_nag.patch b/home/ebisu/meta/network/smolnet/bollux/fix_lesskey_nag.patch new file mode 100644 index 0000000..329b886 --- /dev/null +++ b/home/ebisu/meta/network/smolnet/bollux/fix_lesskey_nag.patch @@ -0,0 +1,13 @@ +diff --git i/bollux w/bollux +index 267418e..090217e 100755 +--- i/bollux ++++ w/bollux +@@ -1130,7 +1130,7 @@ display() { # display METADATA [TITLE] + # text, and pre-formatted text shouldn't wrap. + less_cmd+=(-S) + # Load the keybindings (see `lesskey'). +- mklesskey && less_cmd+=(-k "$BOLLUX_LESSKEY") ++ mklesskey && less_cmd+=(--lesskey-src="$BOLLUX_LESSKEY") + local helpline="${KEY_OPEN}:open, " + helpline+="${KEY_GOTO}/" + helpline+="${KEY_GOTO_FROM}:goto, " diff --git a/home/ebisu/meta/network/smolnet/default.nix b/home/ebisu/meta/network/smolnet/default.nix new file mode 100644 index 0000000..93003c1 --- /dev/null +++ b/home/ebisu/meta/network/smolnet/default.nix @@ -0,0 +1,12 @@ +{ pkgs, config, ... }: +{ + imports = [ ./bollux ]; + + home.packages = with pkgs; [ + amfora + geopard + gmni + phetch + lagrange + ]; +} diff --git a/home/ebisu/meta/network/tools/default.nix b/home/ebisu/meta/network/tools/default.nix new file mode 100644 index 0000000..3b6d59f --- /dev/null +++ b/home/ebisu/meta/network/tools/default.nix @@ -0,0 +1,11 @@ +{ pkgs, ... }: { + imports = [ + ./http + ./shark + ./tcp + ]; + + home.packages = with pkgs; [ + lftp + ]; +} diff --git a/home/ebisu/meta/network/tools/http/default.nix b/home/ebisu/meta/network/tools/http/default.nix new file mode 100644 index 0000000..59d6efc --- /dev/null +++ b/home/ebisu/meta/network/tools/http/default.nix @@ -0,0 +1,8 @@ +{ pkgs, ... }: +{ + imports = [ + ./httpie + ./yaak + ./wget.nix + ]; +} diff --git a/home/ebisu/meta/network/tools/http/httpie/default.nix b/home/ebisu/meta/network/tools/http/httpie/default.nix new file mode 100644 index 0000000..b917245 --- /dev/null +++ b/home/ebisu/meta/network/tools/http/httpie/default.nix @@ -0,0 +1,6 @@ +{ pkgs, ... }: { + home.packages = with pkgs; [ + httpie + httpie-desktop + ]; +} diff --git a/home/ebisu/meta/network/tools/http/wget.nix b/home/ebisu/meta/network/tools/http/wget.nix new file mode 100644 index 0000000..c5d2936 --- /dev/null +++ b/home/ebisu/meta/network/tools/http/wget.nix @@ -0,0 +1,8 @@ +{ pkgs, ... }: +{ + home.packages = [ pkgs.wget ]; + + xdg.configFile."wget/wgetrc".text = '' + hsts-file=~/.cache/wget-hsts + ''; +} diff --git a/home/ebisu/meta/network/tools/http/yaak/default.nix b/home/ebisu/meta/network/tools/http/yaak/default.nix new file mode 100644 index 0000000..05bf0e7 --- /dev/null +++ b/home/ebisu/meta/network/tools/http/yaak/default.nix @@ -0,0 +1,28 @@ +{ pkgs, lib, ... }: +let + yaak-archive = pkgs.fetchzip { + url = "https://releases.yaak.app/releases/2024.6.6/yaak_2024.6.6_amd64.AppImage.tar.gz"; + hash = "sha256-Qnc4RlQmQWHARreQ69jAshq57bZ56Yt5a35jpTjGwNU="; + }; + + version = "2024.6.6"; + + # https://discourse.nixos.org/t/creating-a-nix-derivation-for-an-appimage/31927 + yaak = pkgs.appimageTools.wrapType2 { + pname = "yaak"; + version = version; + src = "${yaak-archive}/yaak_${version}_amd64.AppImage"; + + meta = with lib; { + description = "Play with APIs, intuitively"; + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; + homepage = "https://yaak.app/"; + license = licenses.unfree; + platforms = platforms.linux; + mainProgram = "yaak"; + }; + }; +in +{ + home.packages = [ yaak ]; +} diff --git a/home/ebisu/meta/network/tools/shark/default.nix b/home/ebisu/meta/network/tools/shark/default.nix new file mode 100644 index 0000000..5305bdf --- /dev/null +++ b/home/ebisu/meta/network/tools/shark/default.nix @@ -0,0 +1,8 @@ +{ pkgs +, ... +}: { + home.packages = with pkgs; [ + termshark + wireshark + ]; +} diff --git a/home/ebisu/meta/network/tools/tcp/default.nix b/home/ebisu/meta/network/tools/tcp/default.nix new file mode 100644 index 0000000..6af1824 --- /dev/null +++ b/home/ebisu/meta/network/tools/tcp/default.nix @@ -0,0 +1,12 @@ +{ pkgs, ... }: { + home.packages = with pkgs; [ + bmon + netcat-openbsd + nethogs + inetutils + whois + speedtest-cli + traceroute + iptraf-ng + ]; +} |