Update
This commit is contained in:
@@ -4,11 +4,14 @@
|
||||
|
||||
services.nginx.virtualHosts = {
|
||||
"anotherhadi.com" = {
|
||||
# serverAliases = [ "www.anotherhadi.com" ];
|
||||
serverAliases = [ "www.anotherhadi.com" ];
|
||||
root = "/etc/www/anotherhadi.com";
|
||||
};
|
||||
"home.anotherhadi.com" = { root = "/etc/www/home.anotherhadi.com"; };
|
||||
"www.anotherhadi.com" = { root = "/var/www/test"; };
|
||||
"home.anotherhadi.com" = {
|
||||
serverAliases = [ "jack.anotherhadi.com" ];
|
||||
root = "/etc/www/home.anotherhadi.com";
|
||||
};
|
||||
"test.anotherhadi.com" = { root = "/var/www/test"; };
|
||||
};
|
||||
environment.etc."www/anotherhadi.com" = { source = ./anotherhadi.com; };
|
||||
}
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
let
|
||||
bookmarks = ''
|
||||
Home: [
|
||||
{text: "Nextcloud", url: "https://cloud.anotherhadi.com", icon: ""},
|
||||
{text: "Vaultwarden", url: "https://vault.anotherhadi.com", icon: ""},
|
||||
{text: "Nextcloud", url: "https://cloud.anotherhadi.com", icon: ""},
|
||||
{text: "Vaultwarden", url: "https://vault.anotherhadi.com", icon: ""},
|
||||
],
|
||||
Admin: [
|
||||
{text: "Adguard Home", url: "http://192.168.2.24:3001", icon: ""},
|
||||
{text: "Proxmox", url: "https://192.168.2.17:8006", icon: ""},
|
||||
{text: "Cloudflare", url: "https://dash.cloudflare.com/", icon: ""},
|
||||
{text: "Tailscale", url: "https://login.tailscale.com/admin/machines", icon: ""},
|
||||
{text: "Adguard Home", url: "http://192.168.2.24:3001", icon: ""},
|
||||
{text: "Proxmox", url: "https://192.168.2.17:8006", icon: ""},
|
||||
{text: "Cloudflare", url: "https://dash.cloudflare.com/", icon: ""},
|
||||
{text: "Tailscale", url: "https://login.tailscale.com/admin/machines", icon: ""},
|
||||
],
|
||||
'';
|
||||
in {
|
||||
|
||||
25
hosts/modules/server/www/homepage.nix
Normal file
25
hosts/modules/server/www/homepage.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ lib, buildNpmPackage, fetchFromGitHub }:
|
||||
|
||||
buildNpmPackage rec {
|
||||
pname = "homepage";
|
||||
version = "0.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "anotherhadi";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-BR+ZGkBBfd0dSQqAvujsbgsEPFYw/ThrylxUbOksYxM=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-tuEfyePwlOy2/mOPdXbqJskO6IowvAP4DWg8xSZwbJw=";
|
||||
|
||||
# The prepack script runs the build script, which we'd rather do in the build phase.
|
||||
npmPackFlags = [ "--ignore-scripts" ];
|
||||
|
||||
meta = {
|
||||
description = "A simple homepage for your server.";
|
||||
homepage = "https://github.com/anotherhadi/homepage";
|
||||
# license = lib.licenses.gpl3Only;
|
||||
# maintainers = with lib.maintainers; [ winter ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user