Files
homepage/flake.nix
T
2024-04-22 01:38:32 -05:00

54 lines
1.1 KiB
Nix

{
description = "Greg's homepage";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-root.url = "github:srid/flake-root";
treefmt-nix.url = "github:numtide/treefmt-nix";
};
outputs = { flake-parts, flake-root, treefmt-nix, ... }@inputs:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.flake-root.flakeModule
inputs.treefmt-nix.flakeModule
];
flake = {
# Universal things
};
systems = [
"x86_64-linux"
"aarch64-linux"
];
perSystem = { config, pkgs, ... }: {
devShells.default = pkgs.mkShell {
nativeBuildInputs = [
pkgs.bashInteractive
pkgs.hugo
];
buildInputs = [ ];
};
treefmt.config = {
inherit (config.flake-root) projectRootFile;
package = pkgs.treefmt;
programs = {
deadnix.enable = true;
#mdformat.enable = false;
};
settings.formatter = {
#mdformat = {
# includes = pkgs.lib.mkForce [
# "archtypes/*.md"
# "content/*.md"
# "public/*.md"
# ];
#};
};
};
};
};
}