Files
Gallery/flake.nix
2024-11-13 22:27:02 +01:00

35 lines
654 B
Nix

{
description = "Rixxc's Personal Website and Blog";
inputs.nixpkgs.url = "nixpkgs/nixpkgs-unstable";
outputs = { nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
with pkgs;
{
packages.${system}.default = stdenv.mkDerivation
{
name = "Personal Website";
src = ./.;
nativeBuildInputs = [
hugo
rsync
exiftool
];
buildPhase = ''
hugo
'';
installPhase = ''
mkdir $out
cp -r public/* $out/
'';
};
};
}