feat:add_flake

This commit is contained in:
dichgrem
2025-08-04 19:10:59 +08:00
parent 96bbeb99cb
commit c4b73ad16c
13 changed files with 49 additions and 1 deletions

21
flake.nix Normal file
View File

@@ -0,0 +1,21 @@
{
description = "A Nix-flake-based development environment";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = { self, nixpkgs }:
let
supportedSystems = [ "x86_64-linux" "aarch64-linux" ];
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
pkgs = import nixpkgs { inherit self system; };
});
in
{
devShells = forEachSupportedSystem ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs; [
pagefind
zola
];
};
});
};
}