configuration.nix/flake-modules/default.nix

35 lines
649 B
Nix
Raw Normal View History

{ inputs, ... }:
let
overlays = builtins.attrValues inputs.self.overlays;
in
{
imports = [
inputs.treefmt-nix.flakeModule
./devshells.nix
./docs.nix
./example-vm.nix
./nixos-modules.nix
./nvim.nix
./overlays.nix
./scripts.nix
];
perSystem =
{ system, ... }:
{
_module.args.pkgs = import inputs.nixpkgs { inherit system overlays; };
# Setup formatters
treefmt = {
projectRootFile = "flake.nix";
programs = {
nixfmt.enable = true;
rustfmt.enable = true;
statix.enable = true;
typos.enable = true;
};
};
};
}