Create derivation for learn.wpcarro.dev
Creating a derivation to abstract over the build process for learn.wpcarro.dev.
This commit is contained in:
parent
ebf0ef7e34
commit
eb402bca74
3 changed files with 12 additions and 3 deletions
|
@ -10,6 +10,7 @@ in {
|
||||||
nixos = readTree ./nixos;
|
nixos = readTree ./nixos;
|
||||||
utils = readTree ./utils;
|
utils = readTree ./utils;
|
||||||
emacs = readTree ./emacs;
|
emacs = readTree ./emacs;
|
||||||
|
learn = readTree ./learn;
|
||||||
blog = readTree ./blog;
|
blog = readTree ./blog;
|
||||||
lisp = readTree ./lisp;
|
lisp = readTree ./lisp;
|
||||||
gopkgs = readTree ./gopkgs;
|
gopkgs = readTree ./gopkgs;
|
||||||
|
|
10
learn/default.nix
Normal file
10
learn/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
pkgs.stdenv.mkDerivation {
|
||||||
|
name = "learn.wpcarro.dev";
|
||||||
|
src = ./static;
|
||||||
|
buildPhase = ''
|
||||||
|
cp -R $src $out
|
||||||
|
'';
|
||||||
|
dontInstall = true;
|
||||||
|
}
|
|
@ -157,9 +157,7 @@ in {
|
||||||
"learn.wpcarro.dev" = {
|
"learn.wpcarro.dev" = {
|
||||||
addSSL = true;
|
addSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
# TODO(wpcarro): Prefer creating a default.nix in //learn and using
|
root = briefcase.learn;
|
||||||
# briefcase.learn as root.
|
|
||||||
root = /home/wpcarro/briefcase/learn/static;
|
|
||||||
};
|
};
|
||||||
"git.wpcarro.dev" = {
|
"git.wpcarro.dev" = {
|
||||||
addSSL = true;
|
addSSL = true;
|
||||||
|
|
Loading…
Reference in a new issue