Compare commits
No commits in common. "6a5514c2ee1622cc20a7f7c5c33728d563e72955" and "9ba86faab8df7fcd6f8bc7c9f8ed2501d2de311c" have entirely different histories.
6a5514c2ee
...
9ba86faab8
10
flake.nix
10
flake.nix
|
@ -11,9 +11,15 @@
|
|||
nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./server-config/configuration.nix
|
||||
server-config/configuration.nix
|
||||
|
||||
./nixos-apps
|
||||
# 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
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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,4 +45,11 @@ 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";
|
||||
}
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
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";
|
||||
}
|
|
@ -1,9 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
PROJECT_ROOT = /workspace/deployed-nixos-server-and-apps/nixos-apps/ewanick.com;
|
||||
PORT = "5567";
|
||||
HOST = "localhost";
|
||||
PROJECT_ROOT = builtins.toString ./.;
|
||||
in
|
||||
{
|
||||
services.caddy = {
|
||||
|
@ -12,24 +8,10 @@ in
|
|||
"ewanick.com" = {
|
||||
serverAliases = [ "www.ewanick.com" ];
|
||||
extraConfig = ''
|
||||
reverse_proxy ${HOST}:${PORT}
|
||||
root * ${PROJECT_ROOT}/ewanick.com/
|
||||
file_server
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
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}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
<!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>
|
|
@ -1,4 +0,0 @@
|
|||
# Test Site
|
||||
|
||||
This is my test blog
|
||||
Does it work!?
|
|
@ -0,0 +1,86 @@
|
|||
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
Loading…
Reference in New Issue