diff options
Diffstat (limited to 'users/tazjin')
-rw-r--r-- | users/tazjin/homepage/default.nix | 6 | ||||
-rw-r--r-- | users/tazjin/nixos/camden/default.nix | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/users/tazjin/homepage/default.nix b/users/tazjin/homepage/default.nix index 22380fdea700..9ac3112b0349 100644 --- a/users/tazjin/homepage/default.nix +++ b/users/tazjin/homepage/default.nix @@ -4,7 +4,7 @@ # The website is made up of a simple header&footer and content # elements for things such as blog posts and projects. # -# Content for the blog is in //web/blog instead of here. +# Content for the blog is in //users/tazjin/blog instead of here. { depot, lib, ... }: with depot; @@ -28,7 +28,7 @@ let escape = replaceStrings [ "<" ">" "&" "'" ] [ "<" ">" "&" "'" ]; - postToEntry = defun [ web.blog.post entry ] (post: { + postToEntry = defun [ users.tazjin.blog.post entry ] (post: { class = "blog"; title = post.title; url = "/blog/${post.key}"; @@ -64,7 +64,7 @@ let ++ [ (builtins.readFile ./footer.html) ] )); - homepage = index ((map postToEntry web.blog.posts) ++ (import ./entries.nix)); + homepage = index ((map postToEntry users.tazjin.blog.posts) ++ (import ./entries.nix)); in runCommandNoCC "website" {} '' mkdir $out cp ${homepage} $out/index.html diff --git a/users/tazjin/nixos/camden/default.nix b/users/tazjin/nixos/camden/default.nix index 5b751c0338c1..3d2111356302 100644 --- a/users/tazjin/nixos/camden/default.nix +++ b/users/tazjin/nixos/camden/default.nix @@ -321,11 +321,11 @@ in lib.fix(self: { serverAliases = [ "camden.tazj.in" ]; default = true; useACMEHost = "tazj.in"; - root = depot.web.homepage; + root = depot.users.tazjin.homepage; forceSSL = true; extraConfig = '' - ${depot.web.blog.oldRedirects} + ${depot.users.tazjin.blog.oldRedirects} add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always; @@ -334,7 +334,7 @@ in lib.fix(self: { } location /blog/ { - alias ${depot.web.blog.rendered}/; + alias ${depot.users.tazjin.blog.rendered}/; if ($request_uri ~ ^/(.*)\.html$) { return 302 /$1; |