mirror of
https://git.adityakumar.xyz/flakes.git
synced 2024-11-21 10:12:53 +00:00
add hugo flake
This commit is contained in:
parent
d1116d5ec9
commit
4e87381c8b
1 changed files with 19 additions and 0 deletions
19
flake-hugo.nix
Normal file
19
flake-hugo.nix
Normal file
|
@ -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 }: {
|
||||
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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue