mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-17 04:58:19 -04:00
set up treefmt
This commit is contained in:
@@ -73,7 +73,7 @@
|
|||||||
overlays = import ./overlays {inherit inputs outputs;};
|
overlays = import ./overlays {inherit inputs outputs;};
|
||||||
|
|
||||||
devShells = forEachSystem (pkgs: import ./shell.nix {inherit pkgs;});
|
devShells = forEachSystem (pkgs: import ./shell.nix {inherit pkgs;});
|
||||||
formatter = forEachSystem (pkgs: pkgs.alejandra);
|
formatter = forEachSystem (pkgs: pkgs.treefmt);
|
||||||
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
bob = lib.nixosSystem {
|
bob = lib.nixosSystem {
|
||||||
|
|||||||
14
treefmt.toml
Normal file
14
treefmt.toml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# One CLI to format the code tree - https://github.com/numtide/treefmt
|
||||||
|
|
||||||
|
[global]
|
||||||
|
# Glob patterns of files to exclude
|
||||||
|
excludes = [".git/"]
|
||||||
|
|
||||||
|
|
||||||
|
[formatter.nixfmt]
|
||||||
|
# Formatter to run
|
||||||
|
command = "nixfmt"
|
||||||
|
# Command-line arguments for the command
|
||||||
|
#options = []
|
||||||
|
# Glob pattern of files to include
|
||||||
|
includes = ["*.nix"]
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
nix-output-monitor
|
nix-output-monitor
|
||||||
nix-prefetch
|
nix-prefetch
|
||||||
nix-tree
|
nix-tree
|
||||||
nixpkgs-fmt
|
nixfmt-rfc-style
|
||||||
inputs.system_tools.packages.x86_64-linux.default
|
inputs.system_tools.packages.x86_64-linux.default
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user