diff --git a/.gitmodules b/.gitmodules index 6a28afc..d1bdba2 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ [submodule "themes/hugo-theme-even"] path = themes/hugo-theme-even - url = https://banyan.divineduty.xyz/GNUxeava/hugo-theme-even + url = https://gitea.adityakumar.xyz/aditya/hugo-theme-even [submodule "themes/even"] path = themes/even - url = https://banyan.divineduty.xyz/GNUxeava/hugo-theme-even + url = https://gitea.adityakumar.xyz/aditya/hugo-theme-even diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..b59edb8 --- /dev/null +++ b/flake.nix @@ -0,0 +1,19 @@ +{ + description = "A flake for publishing blog posts to https://blog.adityakumar.xyz/"; + + inputs.nixpkgs.url = "github:nixos/nixpkgs/23.05"; + + outputs = { self, nixpkgs }: { + with import nixpkgs { system = "x86_64-linux"; }; + stdenv.mkDerivation { + name = "blog"; + buildInputs = [ + pkgs.hugo + pkgs.rsync + ]; + src = self; + buildPhase = "hugo server"; + installPhase = "./deploy.sh" + }; + }; +}