From bdcdee9e0940f63b65708736ee671f6e2c731994 Mon Sep 17 00:00:00 2001 From: aditya Date: Wed, 7 Jun 2023 17:50:29 +0530 Subject: [PATCH] update git submodule url --- .gitmodules | 4 ++-- flake.nix | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 flake.nix 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" + }; + }; +}