add flake

This commit is contained in:
Aaron Honeycutt 2025-05-24 22:39:57 -06:00
parent 0832ccc293
commit 459f9ae7ab
2 changed files with 90 additions and 0 deletions

29
flake.nix Normal file
View file

@ -0,0 +1,29 @@
{
description = "Flake to build and develop Nyxi";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs = { self, flake-utils, nixpkgs }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = (import nixpkgs) {
inherit system;
};
in rec {
# For `nix develop`
devShell = pkgs.mkShell {
buildInputs = with pkgs; [ zola ];
shellHook = ''
git submodule update --init --recursive
zola serve
'';
};
}
);
}