From b6007b7e8fb15fda91760e407ccc4e89e8adcf75 Mon Sep 17 00:00:00 2001 From: Bill Ewanick Date: Fri, 7 Apr 2023 11:09:21 -0400 Subject: [PATCH] Initial commit --- README.md | 0 nixos-apps/ewanick.com.nix | 14 +++ nixos-apps/ewanick.com/index.html | 23 +++++ nixos-apps/ewanick.com/main.css | 86 ++++++++++++++++++ nixos-apps/ewanick.com/main.min.js | 1 + nixos-apps/fancytypist.com.nix | 27 ++++++ nixos-apps/git.ewanick.com.nix | 25 ++++++ server-config/configuration.nix | 109 +++++++++++++++++++++++ server-config/flake.lock | 27 ++++++ server-config/flake.nix | 21 +++++ server-config/hardware-configuration.nix | 45 ++++++++++ 11 files changed, 378 insertions(+) create mode 100644 README.md create mode 100644 nixos-apps/ewanick.com.nix create mode 100644 nixos-apps/ewanick.com/index.html create mode 100644 nixos-apps/ewanick.com/main.css create mode 100644 nixos-apps/ewanick.com/main.min.js create mode 100644 nixos-apps/fancytypist.com.nix create mode 100644 nixos-apps/git.ewanick.com.nix create mode 100644 server-config/configuration.nix create mode 100644 server-config/flake.lock create mode 100644 server-config/flake.nix create mode 100644 server-config/hardware-configuration.nix diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/nixos-apps/ewanick.com.nix b/nixos-apps/ewanick.com.nix new file mode 100644 index 0000000..b204047 --- /dev/null +++ b/nixos-apps/ewanick.com.nix @@ -0,0 +1,14 @@ +{ + services.caddy = { + enable = true; + virtualHosts = { + "ewanick.com" = { + serverAliases = [ "www.ewanick.com" ]; + extraConfig = '' + root * /workspace/nixos-apps/ewanick.com/ + file_server + ''; + }; + }; + }; +} diff --git a/nixos-apps/ewanick.com/index.html b/nixos-apps/ewanick.com/index.html new file mode 100644 index 0000000..5c4e05b --- /dev/null +++ b/nixos-apps/ewanick.com/index.html @@ -0,0 +1,23 @@ + + + + + + + + + Elm App using Nix Starter Template + + + + + + + +
+ + + + \ No newline at end of file diff --git a/nixos-apps/ewanick.com/main.css b/nixos-apps/ewanick.com/main.css new file mode 100644 index 0000000..2575f99 --- /dev/null +++ b/nixos-apps/ewanick.com/main.css @@ -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; +} \ No newline at end of file diff --git a/nixos-apps/ewanick.com/main.min.js b/nixos-apps/ewanick.com/main.min.js new file mode 100644 index 0000000..18c9cd0 --- /dev/null +++ b/nixos-apps/ewanick.com/main.min.js @@ -0,0 +1 @@ +!function(S){"use strict";function n(n,r,t){return t.a=n,t.f=r,t}function f(t){return n(2,t,function(r){return function(n){return t(r,n)}})}function r(u){return n(3,u,function(t){return function(r){return function(n){return u(t,r,n)}}})}function t(e){return n(4,e,function(u){return function(t){return function(r){return function(n){return e(u,t,r,n)}}}})}function u(o){return n(5,o,function(e){return function(u){return function(t){return function(r){return function(n){return o(e,u,t,r,n)}}}}})}function e(i){return n(6,i,function(o){return function(e){return function(u){return function(t){return function(r){return function(n){return i(o,e,u,t,r,n)}}}}}})}function q(f){return n(7,f,function(i){return function(o){return function(e){return function(u){return function(t){return function(r){return function(n){return f(i,o,e,u,t,r,n)}}}}}}})}function J(c){return n(8,c,function(f){return function(i){return function(o){return function(e){return function(u){return function(t){return function(r){return function(n){return c(f,i,o,e,u,t,r,n)}}}}}}}})}function F(a){return n(9,a,function(c){return function(f){return function(i){return function(o){return function(e){return function(u){return function(t){return function(r){return function(n){return a(c,f,i,o,e,u,t,r,n)}}}}}}}}})}function b(n,r,t){return 2===n.a?n.f(r,t):n(r)(t)}function v(n,r,t,u){return 3===n.a?n.f(r,t,u):n(r)(t)(u)}function l(n,r,t,u,e){return 4===n.a?n.f(r,t,u,e):n(r)(t)(u)(e)}function c(n,r,t,u,e,o){return 5===n.a?n.f(r,t,u,e,o):n(r)(t)(u)(e)(o)}function R(n,r,t,u,e,o,i){return 6===n.a?n.f(r,t,u,e,o,i):n(r)(t)(u)(e)(o)(i)}function z(n,r){for(var t,u=[],e=D(n,r,0,u);e&&(t=u.pop());e=D(t.a,t.b,0,u));return e}function D(n,r,t,u){if(n===r)return!0;if("object"!=typeof n||null===n||null===r)return"function"==typeof n&&h(5),!1;if(100"),r});function h(n){throw Error("https://github.com/elm/core/blob/1.0.0/hints/"+n+".md")}f(function(n,r){return n+r}),f(function(n,r){return n-r}),f(function(n,r){return n*r}),f(function(n,r){return n/r}),f(function(n,r){return n/r|0}),f(Math.pow),f(function(n,r){return r%n}),f(function(n,r){r%=n;return 0===n?h(11):0o||o>56319?(u[e]=n(r[e]),e++):(u[e]=n(r[e]+r[e+1]),e+=2)}return u.join("")}),f(function(n,r){for(var t=[],u=r.length,e=0;ei)return e}var l=t.$;if(4===l){for(var s=t.k;4===s.$;)s=s.k;return n(r,s,u,e,o+1,i,r.elm_event_node_ref)}var d=t.e;var h=r.childNodes;for(var $=0;$i))return e;o=p}return e}(n,r,t,0,0,r.b,u)}function Gn(n,r,t,u){return 0===t.length?n:(Yn(n,r,t,u),Un(n,t))}function Un(n,r){for(var t=0;t=1)return t;var u=n,e=r-1,o=b(k,r,t);n=u,r=e,t=o}}),Er=f(function(n,r){return v(Nr,n,r,s)}),Or=f(function(n,r){return v(Cr,n,b(Er,0,er(r)-1),r)}),Lr=function(n){var r=n.charCodeAt(0);return r<55296||56319.useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.enp0s5.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}