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 = '' + + + + + + + Homepage + + + + +
+
+

+

+
+
+

+
+ +
+ + + + + ''; +} diff --git a/home/laptop.nix b/home/laptop.nix index 0b0d2e9..9ba7455 100644 --- a/home/laptop.nix +++ b/home/laptop.nix @@ -7,6 +7,7 @@ in { ./scripts/laptop.nix ./apps/laptop.nix ./themes/nixy.nix + ./themes/config/load_wallpapers.nix ]; home = { diff --git a/home/themes/config/load_wallpapers.nix b/home/themes/config/load_wallpapers.nix index 9ce011d..78f7b8b 100644 --- a/home/themes/config/load_wallpapers.nix +++ b/home/themes/config/load_wallpapers.nix @@ -1,6 +1,6 @@ { xdg.configFile."wallpapers" = { recursive = true; - source = ./wallpapers; + source = ../wallpapers; }; } diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 50448f5..d15ccee 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -1,7 +1,7 @@ { pkgs, config, ... }: let variable = import ../../variables.nix; - baseImports = [ ./hardware-configuration.nix ]; + baseImports = [ ./hardware-configuration.nix ./tailscale.nix ]; extraImports = [ (if variable.enableNvidia then ./nvidia.nix else null) diff --git a/hosts/laptop/tailscale.nix b/hosts/laptop/tailscale.nix new file mode 100644 index 0000000..f11eab6 --- /dev/null +++ b/hosts/laptop/tailscale.nix @@ -0,0 +1,6 @@ +{ + services.tailscale = { + enable = true; + authKeyFile = "/etc/tailscalepwd"; + }; +}