2024-10-04 23:23:30 +02:00
|
|
|
{ inputs, ... }:
|
|
|
|
let
|
|
|
|
overlays = builtins.attrValues inputs.self.overlays;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [
|
2024-10-15 22:05:55 +02:00
|
|
|
inputs.treefmt-nix.flakeModule
|
|
|
|
|
2024-10-04 23:23:30 +02:00
|
|
|
./devshells.nix
|
|
|
|
./docs.nix
|
|
|
|
./example-vm.nix
|
|
|
|
./nixos-modules.nix
|
|
|
|
./nvim.nix
|
|
|
|
./overlays.nix
|
|
|
|
./scripts.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
perSystem =
|
2024-10-15 22:05:55 +02:00
|
|
|
{ system, ... }:
|
2024-10-04 23:23:30 +02:00
|
|
|
{
|
|
|
|
_module.args.pkgs = import inputs.nixpkgs { inherit system overlays; };
|
|
|
|
|
2024-10-15 22:05:55 +02:00
|
|
|
# Setup formatters
|
|
|
|
treefmt = {
|
|
|
|
projectRootFile = "flake.nix";
|
|
|
|
programs = {
|
|
|
|
nixfmt.enable = true;
|
|
|
|
rustfmt.enable = true;
|
|
|
|
statix.enable = true;
|
|
|
|
typos.enable = true;
|
|
|
|
};
|
|
|
|
};
|
2024-10-04 23:23:30 +02:00
|
|
|
};
|
|
|
|
}
|