aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
blob: 78f63be87450c5fb8ecd87db8ae6898430f3bba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  description = "A flake for publishing blog posts to https://blog.adityakumar.xyz/";

  inputs.nixpkgs.url = "github:nixos/nixpkgs/23.05";

  outputs = { self, nixpkgs }: {
    packages.x86_64-linux.default = with import nixpkgs { system = "x86_64-linux"; };
    stdenv.mkDerivation {
        name = "blog";
        buildInputs = [
        pkgs.hugo
        pkgs.rsync
        ];
        src = self;
        buildPhase = "hugo server";
        installPhase = "./deploy.sh";
      };
  };
}