summaryrefslogtreecommitdiff
path: root/home/ebisu/kansai/networking
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-23 03:40:38 -0700
committerFuwn <[email protected]>2024-10-23 03:40:38 -0700
commitacd679c65a0dbd8020dfd7f6e3ea6f1e955fab94 (patch)
treeceda1acda86dc4b39e7889fdc4dbde7fe11f29a2 /home/ebisu/kansai/networking
parenthome: simplify akashi module population (diff)
downloadnixos-config-acd679c65a0dbd8020dfd7f6e3ea6f1e955fab94.tar.xz
nixos-config-acd679c65a0dbd8020dfd7f6e3ea6f1e955fab94.zip
home: move fortune modules up into kansai module
Diffstat (limited to 'home/ebisu/kansai/networking')
-rw-r--r--home/ebisu/kansai/networking/default.nix11
-rw-r--r--home/ebisu/kansai/networking/glance.nix388
-rw-r--r--home/ebisu/kansai/networking/i2p.nix7
-rw-r--r--home/ebisu/kansai/networking/smolnet/bollux.nix5
-rw-r--r--home/ebisu/kansai/networking/smolnet/default.nix12
-rw-r--r--home/ebisu/kansai/networking/tools/default.nix28
-rw-r--r--home/ebisu/kansai/networking/tools/dns.nix9
-rw-r--r--home/ebisu/kansai/networking/tools/http/default.nix13
-rw-r--r--home/ebisu/kansai/networking/tools/http/httpie.nix7
-rw-r--r--home/ebisu/kansai/networking/tools/http/wget.nix8
-rw-r--r--home/ebisu/kansai/networking/tools/scanning.nix8
-rw-r--r--home/ebisu/kansai/networking/tools/shark.nix7
12 files changed, 503 insertions, 0 deletions
diff --git a/home/ebisu/kansai/networking/default.nix b/home/ebisu/kansai/networking/default.nix
new file mode 100644
index 0000000..d5a14ca
--- /dev/null
+++ b/home/ebisu/kansai/networking/default.nix
@@ -0,0 +1,11 @@
+{ pkgs, ... }:
+{
+ imports = [
+ ./smolnet
+ ./tools
+ ./glance.nix
+ ./i2p.nix
+ ];
+
+ home.packages = [ pkgs.i2p ];
+}
diff --git a/home/ebisu/kansai/networking/glance.nix b/home/ebisu/kansai/networking/glance.nix
new file mode 100644
index 0000000..80fa419
--- /dev/null
+++ b/home/ebisu/kansai/networking/glance.nix
@@ -0,0 +1,388 @@
+{
+ services.glance = {
+ enable = true;
+
+ settings = {
+ pages = [
+ {
+ name = "Startpage";
+ width = "slim";
+ center-vertically = true;
+
+ columns = [
+ {
+ size = "full";
+
+ widgets = [
+ {
+ type = "search";
+ autofocus = true;
+ }
+ {
+ type = "monitor";
+ cache = "1m";
+ title = "Services";
+
+ sites = [
+ {
+ title = "Fuwn.me";
+ url = "https://fuwn.me";
+ }
+ {
+ title = "due.moe";
+ url = "https://due.moe";
+ }
+ {
+ title = "Mayu";
+ url = "https://mayu.due.moe";
+ }
+ {
+ title = "bin";
+ url = "https://bin.fuwn.me";
+ }
+ {
+ title = "Analytics";
+ url = "https://analytics.fuwn.me/";
+ }
+ ];
+ }
+ {
+ type = "bookmarks";
+
+ groups = [
+ {
+ title = "General";
+ links = [
+ {
+ title = "Gmail";
+ url = "https://mail.google.com/mail/u/0/";
+ same-tab = true;
+ }
+ {
+ title = "Misskey.io";
+ url = "https://misskey.io/";
+ same-tab = true;
+ }
+ {
+ title = "Canvas";
+ url = "https://oit.instructure.com/";
+ same-tab = true;
+ }
+ {
+ title = "Blackboard";
+ url = "https://mhcc.blackboard.com/";
+ same-tab = true;
+ }
+ ];
+ }
+ {
+ title = "Upkeep";
+ links = [
+ {
+ title = "GitHub";
+ url = "https://github.com/";
+ same-tab = true;
+ }
+ {
+ title = "MyNixOS";
+ url = "https://mynixos.com/";
+ same-tab = true;
+ }
+ {
+ title = "NixOS Search";
+ url = "https://search.nixos.org/packages";
+ same-tab = true;
+ }
+ {
+ title = "NextDNS";
+ url = "https://my.nextdns.io/eb9d92/analytics";
+ same-tab = true;
+ }
+ {
+ title = "Tailscale";
+ url = "https://login.tailscale.com/admin";
+ same-tab = true;
+ }
+ {
+ title = "Hetzner";
+ url = "https://console.hetzner.cloud/projects";
+ same-tab = true;
+ }
+ ];
+ }
+ {
+ title = "Entertainment";
+ links = [
+ {
+ title = "YouTube";
+ url = "https://www.youtube.com/";
+ same-tab = true;
+ }
+ {
+ title = "AniList";
+ url = "https://anilist.co/";
+ same-tab = true;
+ }
+ {
+ title = "due.moe";
+ url = "https://due.moe/";
+ same-tab = true;
+ }
+ {
+ title = "MangaDex";
+ url = "https://mangadex.org/";
+ same-tab = true;
+ }
+ {
+ title = "Rawkuma";
+ url = "https://rawkuma.com/";
+ same-tab = true;
+ }
+ ];
+ }
+ ];
+ }
+ ];
+ }
+ ];
+ }
+ {
+ name = "Markets";
+
+ columns = [
+ {
+ size = "small";
+
+ widgets = [
+ {
+ type = "markets";
+ title = "Indices";
+
+ markets = [
+ {
+ symbol = "SPY";
+ name = "S&P 500";
+ }
+ {
+ symbol = "DX-Y.NYB";
+ name = "Dollar Index";
+ }
+ ];
+ }
+ {
+ type = "markets";
+ title = "Crypto";
+
+ markets = [
+ {
+ symbol = "BTC-USD";
+ name = "Bitcoin";
+ }
+ {
+ symbol = "ETH-USD";
+ name = "Ethereum";
+ }
+ ];
+ }
+ {
+ type = "markets";
+ title = "Stocks";
+ sort-by = "absolute-change";
+
+ markets = [
+ {
+ symbol = "NVDA";
+ name = "NVIDIA";
+ }
+ {
+ symbol = "AAPL";
+ name = "Apple";
+ }
+ {
+ symbol = "MSFT";
+ name = "Microsoft";
+ }
+ {
+ symbol = "GOOGL";
+ name = "Google";
+ }
+ {
+ symbol = "AMD";
+ name = "AMD";
+ }
+ {
+ symbol = "RDDT";
+ name = "Reddit";
+ }
+ {
+ symbol = "AMZN";
+ name = "Amazon";
+ }
+ {
+ symbol = "TSLA";
+ name = "Tesla";
+ }
+ {
+ symbol = "INTC";
+ name = "Intel";
+ }
+ {
+ symbol = "META";
+ name = "Meta";
+ }
+ ];
+ }
+ ];
+ }
+ {
+ size = "full";
+
+ widgets = [
+ {
+ type = "rss";
+ title = "News";
+ style = "horizontal-cards";
+
+ feeds = [
+ {
+ url = "https://feeds.bloomberg.com/markets/news.rss";
+ title = "Bloomberg";
+ }
+ {
+ url = "https://moxie.foxbusiness.com/google-publisher/markets.xml";
+ title = "Fox Business";
+ }
+ {
+ url = "https://moxie.foxbusiness.com/google-publisher/technology.xml";
+ title = "Fox Business";
+ }
+ ];
+ }
+ {
+ type = "group";
+
+ widgets = [
+ {
+ type = "reddit";
+ show-thumbnails = true;
+ subreddit = "technology";
+ }
+ {
+ type = "reddit";
+ show-thumbnails = true;
+ subreddit = "wallstreetbets";
+ }
+ ];
+ }
+ {
+ type = "videos";
+ style = "grid-cards";
+ collapse-after-rows = 3;
+
+ channels = [
+ "UCvSXMi2LebwJEM1s4bz5IBA"
+ "UCV6KDgJskWaEckne5aPA0aQ"
+ "UCAzhpt9DmG6PnHXjmJTvRGQ"
+ ];
+ }
+ ];
+ }
+ {
+ size = "small";
+
+ widgets = [
+ {
+ type = "rss";
+ title = "News";
+ limit = 30;
+ collapse-after = 13;
+
+ feeds = [
+ {
+ url = "https://www.ft.com/technology?format=rss";
+ title = "Financial Times";
+ }
+ {
+ url = "https://feeds.a.dj.com/rss/RSSMarketsMain.xml";
+ title = "Wall Street Journal";
+ }
+ ];
+ }
+ ];
+ }
+ ];
+ }
+ {
+ name = "Gaming";
+
+ columns = [
+ {
+ size = "small";
+
+ widgets = [
+ {
+ type = "twitch-top-games";
+ limit = 20;
+ collapse-after = 13;
+
+ exclude = [
+ "just-chatting"
+ "pools-hot-tubs-and-beaches"
+ "music"
+ "art"
+ "asmr"
+ ];
+ }
+ ];
+ }
+ {
+ size = "full";
+
+ widgets = [
+ {
+ type = "group";
+
+ widgets = [
+ {
+ type = "reddit";
+ show-thumbnails = true;
+ subreddit = "pcgaming";
+ }
+ {
+ type = "reddit";
+ subreddit = "games";
+ }
+ ];
+ }
+ {
+ type = "videos";
+ style = "grid-cards";
+ collapse-after-rows = 3;
+
+ channels = [
+ "UCNvzD7Z-g64bPXxGzaQaa4g"
+ "UCZ7AeeVbyslLM_8-nVy2B8Q"
+ "UCHDxYLv8iovIbhrfl16CNyg"
+ "UC9PBzalIcEQCsiIkq36PyUA"
+ ];
+ }
+ ];
+ }
+ {
+ size = "small";
+
+ widgets = [
+ {
+ type = "reddit";
+ subreddit = "gamingnews";
+ limit = 7;
+ style = "vertical-cards";
+ }
+ ];
+ }
+ ];
+ }
+ ];
+ };
+ };
+}
diff --git a/home/ebisu/kansai/networking/i2p.nix b/home/ebisu/kansai/networking/i2p.nix
new file mode 100644
index 0000000..77b72cc
--- /dev/null
+++ b/home/ebisu/kansai/networking/i2p.nix
@@ -0,0 +1,7 @@
+{ pkgs, ... }:
+{
+ home.packages = with pkgs; [
+ # biglybt
+ xd
+ ];
+}
diff --git a/home/ebisu/kansai/networking/smolnet/bollux.nix b/home/ebisu/kansai/networking/smolnet/bollux.nix
new file mode 100644
index 0000000..f0f05f9
--- /dev/null
+++ b/home/ebisu/kansai/networking/smolnet/bollux.nix
@@ -0,0 +1,5 @@
+{ pkgs, ... }:
+{
+ home.packages = [ pkgs.tsutsumi.bollux ];
+ xdg.configFile."bollux/bollux.conf".text = '''';
+}
diff --git a/home/ebisu/kansai/networking/smolnet/default.nix b/home/ebisu/kansai/networking/smolnet/default.nix
new file mode 100644
index 0000000..fe69274
--- /dev/null
+++ b/home/ebisu/kansai/networking/smolnet/default.nix
@@ -0,0 +1,12 @@
+{ pkgs, ... }:
+{
+ imports = [ ./bollux.nix ];
+
+ home.packages = with pkgs; [
+ amfora
+ geopard
+ gmni
+ phetch
+ lagrange
+ ];
+}
diff --git a/home/ebisu/kansai/networking/tools/default.nix b/home/ebisu/kansai/networking/tools/default.nix
new file mode 100644
index 0000000..7081ac3
--- /dev/null
+++ b/home/ebisu/kansai/networking/tools/default.nix
@@ -0,0 +1,28 @@
+{ pkgs, ... }:
+{
+ imports = [
+ ./http
+ ./dns.nix
+ ./scanning.nix
+ ./shark.nix
+ ];
+
+ home.packages = with pkgs; [
+ lftp
+ pwru
+ bmon
+ netcat-openbsd
+ nethogs
+ inetutils
+ speedtest-cli
+ traceroute
+ iptraf-ng
+ tcpdump
+ tsutsumi.bindtointerface
+ trayscale
+ bandwhich
+ bore-cli
+ hcloud
+ gping
+ ];
+}
diff --git a/home/ebisu/kansai/networking/tools/dns.nix b/home/ebisu/kansai/networking/tools/dns.nix
new file mode 100644
index 0000000..f7e487a
--- /dev/null
+++ b/home/ebisu/kansai/networking/tools/dns.nix
@@ -0,0 +1,9 @@
+{ pkgs, ... }:
+{
+ home.packages = with pkgs; [
+ dnsutils
+ whois
+ dogdns
+ doggo
+ ];
+}
diff --git a/home/ebisu/kansai/networking/tools/http/default.nix b/home/ebisu/kansai/networking/tools/http/default.nix
new file mode 100644
index 0000000..b763a1f
--- /dev/null
+++ b/home/ebisu/kansai/networking/tools/http/default.nix
@@ -0,0 +1,13 @@
+{ pkgs, ... }:
+{
+ imports = [
+ ./httpie.nix
+ ./wget.nix
+ ];
+
+ home.packages = with pkgs; [
+ tsutsumi.yaak
+ curlie
+ xh
+ ];
+}
diff --git a/home/ebisu/kansai/networking/tools/http/httpie.nix b/home/ebisu/kansai/networking/tools/http/httpie.nix
new file mode 100644
index 0000000..f27ef26
--- /dev/null
+++ b/home/ebisu/kansai/networking/tools/http/httpie.nix
@@ -0,0 +1,7 @@
+{ pkgs, ... }:
+{
+ home.packages = with pkgs; [
+ httpie
+ httpie-desktop
+ ];
+}
diff --git a/home/ebisu/kansai/networking/tools/http/wget.nix b/home/ebisu/kansai/networking/tools/http/wget.nix
new file mode 100644
index 0000000..c5d2936
--- /dev/null
+++ b/home/ebisu/kansai/networking/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/kansai/networking/tools/scanning.nix b/home/ebisu/kansai/networking/tools/scanning.nix
new file mode 100644
index 0000000..fe9c1fa
--- /dev/null
+++ b/home/ebisu/kansai/networking/tools/scanning.nix
@@ -0,0 +1,8 @@
+{ pkgs, ... }:
+{
+ home.packages = with pkgs; [
+ nmap
+ rustscan
+ arp-scan
+ ];
+}
diff --git a/home/ebisu/kansai/networking/tools/shark.nix b/home/ebisu/kansai/networking/tools/shark.nix
new file mode 100644
index 0000000..d4b8c51
--- /dev/null
+++ b/home/ebisu/kansai/networking/tools/shark.nix
@@ -0,0 +1,7 @@
+{ pkgs, ... }:
+{
+ home.packages = with pkgs; [
+ termshark
+ wireshark
+ ];
+}