mirror of
https://github.com/ahoneybun/ahoneybun.net.git
synced 2025-06-06 14:56:54 -06:00
add flake
This commit is contained in:
parent
0832ccc293
commit
459f9ae7ab
2 changed files with 90 additions and 0 deletions
29
flake.nix
Normal file
29
flake.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue