Now Use flake part and integrate a build system using nix package building and treefmt-nix as a flake-part module
24 lines
502 B
Nix
24 lines
502 B
Nix
{
|
|
description = "Nix flake for my personal blog";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
treefmt-nix.url = "github:numtide/treefmt-nix";
|
|
};
|
|
|
|
outputs =
|
|
inputs@{
|
|
nixpkgs,
|
|
flake-parts,
|
|
systems,
|
|
...
|
|
}:
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
systems = [ "x86_64-linux" ];
|
|
imports = [
|
|
inputs.treefmt-nix.flakeModule
|
|
./nix/default.nix
|
|
];
|
|
};
|
|
}
|