Update
This commit is contained in:
parent
1efdadbdad
commit
bbb35737c2
35
hosts/server/modules/www/anotherhadi.com.nix
Normal file
35
hosts/server/modules/www/anotherhadi.com.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
package = pkgs.buildNpmPackage {
|
||||||
|
pname = "homepage";
|
||||||
|
version = "0.0.0";
|
||||||
|
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "anotherhadi";
|
||||||
|
repo = "portfolio";
|
||||||
|
rev = "3f03233f7dcc5fb175c8bba8874a2f5c26999c93";
|
||||||
|
hash = "sha256-q8cRi3DEwM/9DUxKbeJMv/TULf/mR0pg16orkd3xMNo=";
|
||||||
|
};
|
||||||
|
|
||||||
|
npmDepsHash = lib.fakeHash;
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
npm install
|
||||||
|
npm run build
|
||||||
|
mkdir $out
|
||||||
|
mv build $out
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "portfolio";
|
||||||
|
homepage = "https://github.com/anotherhadi/portfolio";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
in {
|
||||||
|
services.nginx.virtualHosts."anotherhadi.com" = {
|
||||||
|
serverAliases = [ "www.anotherhadi.com" ];
|
||||||
|
enableACME = true;
|
||||||
|
root = package + "/build";
|
||||||
|
};
|
||||||
|
}
|
@ -1,12 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
|
|
||||||
<head>
|
|
||||||
<title></title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
Anotherhadi website
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
@ -1,5 +1,9 @@
|
|||||||
{
|
{
|
||||||
imports = [ ./home.anotherhadi.com.nix ./start.anotherhadi.com.nix ];
|
imports = [
|
||||||
|
./home.anotherhadi.com.nix
|
||||||
|
./start.anotherhadi.com.nix
|
||||||
|
./anotherhadi.com.nix
|
||||||
|
];
|
||||||
|
|
||||||
services.nginx.virtualHosts = {
|
services.nginx.virtualHosts = {
|
||||||
"anotherhadi.com" = {
|
"anotherhadi.com" = {
|
||||||
|
Loading…
Reference in New Issue
Block a user