my over complex system configurations dotfiles.isabelroses.com/
nixos nix flake dotfiles linux

feat: add more git hooks

+14 -1
+1 -1
parts/programs/default.nix
··· 2 2 imports = [ 3 3 ./deploy.nix # a setup for deploy-rs, which allows us to remotely build and deploy our flake 4 4 ./formatter.nix # formatter for nix fmt, via treefmt is a formatter for every language 5 - ./pre-commit.nix # git hooks to help manage the flake 5 + ./git-hooks.nix # git hooks to help manage the flake 6 6 ./shell.nix # a dev shell that provieds all that you will need to work 7 7 ]; 8 8 }
+4
parts/programs/pre-commit.nix parts/programs/git-hooks.nix
··· 40 40 # ensure we have nice formatting 41 41 prettier = mkHook' "prettier" { settings.write = true; }; 42 42 treefmt = mkHook' "treefmt" { package = config.treefmt.build.wrapper; }; 43 + stylua = mkHook "stylua"; 43 44 editorconfig-checker = mkHook' "editorconfig" { 44 45 enable = lib.mkForce false; 45 46 always_run = true; ··· 47 48 nixfmt = mkHook "nixfmt" // { 48 49 package = pkgs.nixfmt-rfc-style; 49 50 }; 51 + 52 + # check for dead links 53 + lychee = mkHook "lychee"; 50 54 51 55 # make sure there are no typos in the code 52 56 typos = mkHook' "typos" {
+9
stylua.toml
··· 1 + indent_type = "Spaces" 2 + indent_width = 2 3 + column_width = 120 4 + quote_style = "AutoPreferDouble" 5 + call_parentheses = "Always" 6 + line_endings = "Unix" 7 + 8 + [sort_requires] 9 + enabled = true