Host the static files required by the blog on a subdomain.

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
2023-11-30 05:51:20 +00:00
parent 28aad07d18
commit 3888606d8c
3 changed files with 155 additions and 5 deletions

View File

@@ -2,15 +2,20 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
blog.url = "git+https://dev.danilafe.com/Nix-Configs/blog-static-flake.git";
web-files.url = "git+https://dev.danilafe.com/Nix-Configs/web-files.git";
};
outputs = { self, nixpkgs, blog }:
outputs = { self, nixpkgs, blog, web-files }:
let
system = "x86_64-linux";
in
{
nixosConfigurations.nixos-droplet-v2 = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit system; blog = blog.lib."${system}"; };
specialArgs = {
inherit system;
blog = blog.lib."${system}";
web-files = web-files.defaultPackage."${system}";
};
modules = [ ./configuration.nix ];
};
};