1
1
Fork 0

Compare commits

...

4 Commits

8 changed files with 45 additions and 129 deletions

View File

@ -11,15 +11,9 @@
nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [
server-config/configuration.nix
./server-config/configuration.nix
# Applications that run on this server
nixos-apps/crueltysquad.com.nix
nixos-apps/cutesealfanpage.love.nix
nixos-apps/ewanick.com.nix
nixos-apps/fancytypist.com.nix
nixos-apps/git.ewanick.com.nix
nixos-apps/jitsi.crueltysquad.com.nix
./nixos-apps
];
};
};

View File

@ -1,7 +1,7 @@
{ pkgs, ... }:
let
PROJECT_ROOT = "/workspace/deployed-nixos-server-and-apps/nixos-apps/cutesealfanpage.love";
PROJECT_ROOT = /workspace/deployed-nixos-server-and-apps/nixos-apps/cutesealfanpage.love;
in
{
services.caddy = {
@ -45,11 +45,4 @@ in
'';
};
};
# when in doubt, clear away the certs with
# sudo rm -rf /var/lib/acme/
security.acme.acceptTerms = true;
security.acme.defaults.email = "admin@cutesealfanpage.love";
# uncomment this to use the staging server
# security.acme.server = "https://acme-staging-v02.api.letsencrypt.org/directory";
}

17
nixos-apps/default.nix Normal file
View File

@ -0,0 +1,17 @@
{
imports = [
./crueltysquad.com.nix
./cutesealfanpage.love.nix
./ewanick.com.nix
./fancytypist.com.nix
./git.ewanick.com.nix
./jitsi.crueltysquad.com.nix
];
# when in doubt, clear away the certs with
# sudo rm -rf /var/lib/acme/
security.acme.acceptTerms = true;
security.acme.defaults.email = "admin@cutesealfanpage.love";
# uncomment this to use the staging server
# security.acme.server = "https://acme-staging-v02.api.letsencrypt.org/directory";
}

View File

@ -1,5 +1,9 @@
{ pkgs, ... }:
let
PROJECT_ROOT = builtins.toString ./.;
PROJECT_ROOT = /workspace/deployed-nixos-server-and-apps/nixos-apps/ewanick.com;
PORT = "5567";
HOST = "localhost";
in
{
services.caddy = {
@ -8,10 +12,24 @@ in
"ewanick.com" = {
serverAliases = [ "www.ewanick.com" ];
extraConfig = ''
root * ${PROJECT_ROOT}/ewanick.com/
file_server
reverse_proxy ${HOST}:${PORT}
'';
};
};
};
systemd.services = {
ewanick-site = {
enable = true;
description = "The hakyll executable that rebuilds the site when a new blog post is created.";
path = with pkgs; [
nix
git
];
script = ''
cd ${PROJECT_ROOT}
nix run github:srid/emanote -- run --port ${PORT} --host ${HOST}
'';
};
};
}

View File

@ -1,23 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<title>Elm App using Nix Starter Template</title>
<link rel="stylesheet" href="main.css">
<script src="main.min.js"></script>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="root"></div>
<script>var app = Elm.Main.init({ node: document.getElementById("root") });</script>
</body>
</html>

View File

@ -0,0 +1,4 @@
# Test Site
This is my test blog
Does it work!?

View File

@ -1,86 +0,0 @@
html,
body {
height: 100%;
}
body {
background-color: #fff1e5;
font-size: 20px;
color: #070707;
margin: 0px;
font-family: 'IBM Plex Sans', sans-serif;
}
h1 {
display: block;
font-size: 2em;
font-weight: bold;
margin: 0em 0em 1em 0em;
}
a {
color: #070707;
border-bottom: 1px dashed #070707;
padding-bottom: 0px;
text-decoration: none;
transition: padding 0.25s;
}
a:hover {
padding-bottom: 2px;
}
#hwaet {
padding: 2em;
max-width: 1000px;
margin-right: auto;
margin-left: auto;
}
#controls {
display: flex
}
.control {
margin-right: 1em;
display: flex;
flex-direction: column;
width: 10em;
font-size: 0.75em;
text-align: center;
}
input[type="range"] {
width: 100%;
margin-bottom: 1em;
}
input[type=range] {
-webkit-appearance: none;
}
input[type=range]::-webkit-slider-runnable-track {
height: .35em;
background: #070707;
border: none;
border-radius: 3px;
}
input[type=range]::-webkit-slider-thumb {
-webkit-appearance: none;
border: none;
height: 1.1em;
width: 1.1em;
border-radius: 50%;
background: #070707;
margin-top: -4px;
}
input[type=range]:focus {
outline: none;
}
#footer {
font-size: 0.8em;
}

File diff suppressed because one or more lines are too long