From c2bb7f475bfdbc361e522be7ac15e0cfdbecf71e Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Sat, 8 Jun 2024 20:50:18 +0200 Subject: [PATCH] Update --- home/apps/qutebrowser/default.nix | 5 +- home/apps/qutebrowser/serverpage/default.nix | 288 +++++++++++++++++++ home/laptop.nix | 1 + home/themes/config/load_wallpapers.nix | 2 +- hosts/laptop/configuration.nix | 2 +- hosts/laptop/tailscale.nix | 6 + 6 files changed, 301 insertions(+), 3 deletions(-) create mode 100644 home/apps/qutebrowser/serverpage/default.nix create mode 100644 hosts/laptop/tailscale.nix diff --git a/home/apps/qutebrowser/default.nix b/home/apps/qutebrowser/default.nix index e50c464..db679f1 100644 --- a/home/apps/qutebrowser/default.nix +++ b/home/apps/qutebrowser/default.nix @@ -1,6 +1,6 @@ { config, ... }: { - imports = [ ./duckduckgo-colorscheme.nix ./homepage/default.nix ]; + imports = [ ./duckduckgo-colorscheme.nix ./homepage ./serverpage ]; programs.qutebrowser = { enable = true; @@ -19,6 +19,7 @@ quickmarks = { home = "${config.home.homeDirectory}/.config/startpage/index.html"; + server = "${config.home.homeDirectory}/.config/serverpage/index.html"; mynixos = "https://mynixos.com"; github = "https://github.com"; outlook = "https://outlook.office.com/mail/"; @@ -184,6 +185,8 @@ keyBindings = { normal = { "gh" = "open ${config.home.homeDirectory}/.config/startpage/index.html"; + "gs" = + "open ${config.home.homeDirectory}/.config/serverpage/index.html"; " p" = "tab-move -"; " n" = "tab-move +"; diff --git a/home/apps/qutebrowser/serverpage/default.nix b/home/apps/qutebrowser/serverpage/default.nix new file mode 100644 index 0000000..5963370 --- /dev/null +++ b/home/apps/qutebrowser/serverpage/default.nix @@ -0,0 +1,288 @@ +{ config, ... }: +let + bookmarks = '' + Services: [ + {text: "TrueNAS", url: "https://heaven", icon: ""}, + {text: "Nextcloud", url: "https://cloud.anotherhadi.com/", icon: ""}, + {text: "Vaultwarden", url: "https://vault.anotherhadi.com/", icon: ""}, + {text: "PiHole", url: "http://heaven:20720/admin", icon: ""}, + ], + Admin: [ + {text: "Vaultwarden", url: "https://vault.anotherhadi.com/admin", icon: ""}, + {text: "Cloudflare One", url: "https://one.dash.cloudflare.com/", icon: ""}, + {text: "Cloudflare", url: "https://cloudflare.com/", icon: ""}, + {text: "Tailscale", url: "https://login.tailscale.com/admin/machines", icon: ""}, + ], + ''; +in { + + xdg.configFile."serverpage/index.html".text = '' + + + +
+ + +