diff options
-rw-r--r-- | .editorconfig | 12 | ||||
-rw-r--r-- | .envrc | 9 | ||||
-rw-r--r-- | shell.nix | 9 |
3 files changed, 30 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..f394793 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true + +[Makefile] +indent_style = tab + +[*.{c,h}] +indent_style = space +indent_size = 2 @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +# the shebang is ignored, but nice for editors + +if type -P lorri &>/dev/null; then + eval "$(lorri direnv)" +else + echo 'while direnv evaluated .envrc, could not find the command "lorri" [https://github.com/nix-community/lorri]' + use nix +fi diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..6b5b81f --- /dev/null +++ b/shell.nix @@ -0,0 +1,9 @@ +with (import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/release-24.05.tar.gz") {}); + +pkgs.mkShell { + buildInputs = [ + ccls + bear + gdb + ]; +} |