Files
homepage/flake.nix
T

54 lines
1.1 KiB
Nix
Raw Normal View History

2022-10-10 16:04:24 -05:00
{
2024-04-21 22:17:01 -05:00
description = "Greg's homepage";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
2024-04-21 22:39:55 -05:00
flake-root.url = "github:srid/flake-root";
treefmt-nix.url = "github:numtide/treefmt-nix";
2024-04-21 22:17:01 -05:00
};
2022-10-10 16:04:24 -05:00
2024-04-21 22:39:55 -05:00
outputs = { flake-parts, flake-root, treefmt-nix, ... }@inputs:
2024-04-21 22:17:01 -05:00
flake-parts.lib.mkFlake { inherit inputs; } {
2024-04-21 22:39:55 -05:00
imports = [
inputs.flake-root.flakeModule
inputs.treefmt-nix.flakeModule
];
2024-04-21 22:17:01 -05:00
flake = {
# Universal things
};
systems = [
"x86_64-linux"
"aarch64-linux"
];
perSystem = { config, pkgs, ... }: {
devShells.default = pkgs.mkShell {
nativeBuildInputs = [
pkgs.bashInteractive
pkgs.hugo
];
buildInputs = [ ];
};
2024-04-21 22:39:55 -05:00
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"
# ];
#};
};
};
2024-04-21 22:17:01 -05:00
};
};
2022-10-10 16:04:24 -05:00
}