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;
|
||||
utils = readTree ./utils;
|
||||
emacs = readTree ./emacs;
|
||||
learn = readTree ./learn;
|
||||
blog = readTree ./blog;
|
||||
lisp = readTree ./lisp;
|
||||
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" = {
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
# TODO(wpcarro): Prefer creating a default.nix in //learn and using
|
||||
# briefcase.learn as root.
|
||||
root = /home/wpcarro/briefcase/learn/static;
|
||||
root = briefcase.learn;
|
||||
};
|
||||
"git.wpcarro.dev" = {
|
||||
addSSL = true;
|
||||
|
|
Loading…
Reference in a new issue