nix machine / user configurations

feat(qol): configure treefmt

ptr.pet 9a37a993 bfbf63ed

verified
Changed files
+9 -10
shells
+7 -1
shells/default.nix
··· 34 rage 35 nh 36 nvfetcher 37 # golangci-lint 38 # golangci-lint-langserver 39 ]) ··· 48 ''; 49 }; 50 perses = pkgs.mkShellNoCC { 51 - packages = [dash set.terra.percli pkgs.go pkgs.gopls]; 52 }; 53 } 54 ) allPkgsSets
··· 34 rage 35 nh 36 nvfetcher 37 + treefmt 38 # golangci-lint 39 # golangci-lint-langserver 40 ]) ··· 49 ''; 50 }; 51 perses = pkgs.mkShellNoCC { 52 + packages = [ 53 + dash 54 + set.terra.percli 55 + pkgs.go 56 + pkgs.gopls 57 + ]; 58 }; 59 } 60 ) allPkgsSets
+2 -9
treefmt.toml
··· 1 - # One CLI to format the code tree - https://github.com/numtide/treefmt 2 - 3 [formatter.nix] 4 - # Formatter to run 5 command = "nixfmt" 6 - # Command-line arguments for the command 7 - options = [] 8 - # Glob pattern of files to include 9 - includes = [ "*.nix" ] 10 - # Glob patterns of files to exclude 11 - excludes = []
··· 1 [formatter.nix] 2 command = "nixfmt" 3 + includes = ["*.nix"] 4 + excludes = ["_sources/generated.nix"]