From bdcdee9e0940f63b65708736ee671f6e2c731994 Mon Sep 17 00:00:00 2001 From: aditya Date: Wed, 7 Jun 2023 17:50:29 +0530 Subject: update git submodule url --- flake.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') 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" + }; + }; +} -- cgit v1.2.3