This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

init treefmt

+51
+4
flake.nix
··· 47 47 nix-darwin.inputs.nixpkgs.follows = "nixpkgs"; 48 48 49 49 nixos-facter.url = "github:numtide/nixos-facter-modules"; 50 + 51 + treefmt-nix.url = "github:numtide/treefmt-nix"; 52 + treefmt-nix.inputs.nixpkgs.follows = "nixpkgs"; 50 53 }; 51 54 52 55 outputs = inputs@{ self, flake-parts, nixpkgs, clan-core, ... }: ··· 83 86 ./tools/astronvim/flake-module.nix 84 87 ./tools/zsh.nix 85 88 ./tools/get-spora-hosts.nix 89 + ./formatter.nix 86 90 ]; 87 91 flake.nixosConfigurations = clan.nixosConfigurations; 88 92 flake.clanInternals = clan.clanInternals;
+47
formatter.nix
··· 1 + { inputs, ... }: 2 + { 3 + imports = [ inputs.treefmt-nix.flakeModule ]; 4 + perSystem = 5 + { pkgs, ... }: 6 + { 7 + treefmt.projectRootFile = ".git/config"; 8 + treefmt.programs.shellcheck.enable = true; 9 + 10 + treefmt.programs.nixfmt.enable = true; 11 + treefmt.programs.nixfmt.package = pkgs.nixfmt-rfc-style; 12 + treefmt.programs.deadnix.enable = true; 13 + treefmt.settings.global.excludes = [ 14 + "*.png" 15 + "*.jpeg" 16 + "*.gitignore" 17 + ".vscode/*" 18 + "*.toml" 19 + "*.clan-flake" 20 + "*.code-workspace" 21 + "*.pub" 22 + "*.typed" 23 + "*.age" 24 + "*.list" 25 + "*.desktop" 26 + ]; 27 + treefmt.programs.prettier = { 28 + enable = true; 29 + includes = [ 30 + "*.cjs" 31 + "*.css" 32 + "*.html" 33 + "*.js" 34 + "*.json5" 35 + "*.jsx" 36 + "*.mdx" 37 + "*.mjs" 38 + "*.scss" 39 + "*.ts" 40 + "*.tsx" 41 + "*.vue" 42 + "*.yaml" 43 + "*.yml" 44 + ]; 45 + }; 46 + }; 47 + }