diff options
| author | Fuwn <[email protected]> | 2024-09-21 06:04:02 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-21 06:04:02 -0700 |
| commit | c8a3b76651be0f0e5e8f36a51b2487b19c001ec3 (patch) | |
| tree | 035a053fc7495a24bca61ca8a3ee07d1c4648f80 | |
| parent | modules: set up sops (diff) | |
| download | nixos-config-c8a3b76651be0f0e5e8f36a51b2487b19c001ec3.tar.xz nixos-config-c8a3b76651be0f0e5e8f36a51b2487b19c001ec3.zip | |
networking: configure glance
| -rw-r--r-- | home/ebisu/fortune/networking/default.nix | 7 | ||||
| -rw-r--r-- | home/ebisu/fortune/networking/glance.nix | 347 |
2 files changed, 349 insertions, 5 deletions
diff --git a/home/ebisu/fortune/networking/default.nix b/home/ebisu/fortune/networking/default.nix index 2f09b06..5474bdf 100644 --- a/home/ebisu/fortune/networking/default.nix +++ b/home/ebisu/fortune/networking/default.nix @@ -3,13 +3,10 @@ imports = [ ./smolnet ./tools + ./glance.nix ./i2p.nix ]; home.packages = [ pkgs.i2p ]; - - services = { - tailray.enable = true; - glance.enable = true; - }; + services.tailray.enable = true; } diff --git a/home/ebisu/fortune/networking/glance.nix b/home/ebisu/fortune/networking/glance.nix new file mode 100644 index 0000000..af168a0 --- /dev/null +++ b/home/ebisu/fortune/networking/glance.nix @@ -0,0 +1,347 @@ +{ + 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 = "wastebin"; + url = "https://bin.fuwn.me"; + } + ]; + } + { + type = "bookmarks"; + groups = [ + { + title = "General"; + links = [ + { + title = "Gmail"; + url = "https://mail.google.com/mail/u/0/"; + } + { + title = "Misskey.io"; + url = "https://misskey.io/"; + } + { + title = "Canvas"; + url = "https://oit.instructure.com/"; + } + { + title = "Blackboard"; + url = "https://mhcc.blackboard.com/"; + } + ]; + } + { + title = "Upkeep"; + links = [ + { + title = "Github"; + url = "https://github.com/"; + } + { + title = "MyNixOS"; + url = "https://mynixos.com/"; + } + { + title = "NixOS Search"; + url = "https://search.nixos.org/packages"; + } + { + title = "NextDNS"; + url = "https://my.nextdns.io/eb9d92/analytics"; + } + { + title = "Tailscale"; + url = "https://login.tailscale.com/admin"; + } + { + title = "Hetzner"; + url = "https://console.hetzner.cloud/projects"; + } + ]; + } + { + title = "Entertainment"; + links = [ + { + title = "YouTube"; + url = "https://www.youtube.com/"; + } + { + title = "AniList"; + url = "https://anilist.co/"; + } + { + title = "due.moe"; + url = "https://due.moe/"; + } + { + title = "MangaDex"; + url = "https://mangadex.org/"; + } + { + title = "Rawkuma"; + url = "https://rawkuma.com/"; + } + ]; + } + ]; + } + ]; + } + ]; + } + { + 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"; + } + ]; + } + ]; + } + ]; + }; + }; +} |