diff options
| author | Stellar Rounin <stellarrounin@gmail.com> | 2026-09-12 00:36:48 +0000 |
|---|---|---|
| committer | Stellar Rounin <stellarrounin@gmail.com> | 2026-09-12 00:36:48 +0000 |
| commit | 30917f3291a9e78d5d1ff995961ade14a47c3ef8 (patch) | |
| tree | 5d0a459d320f53f191b46968f992faa0b27952cb | |
| parent | 4a3dabdc976d187494d445486078d7628ea974c5 (diff) | |
| download | site-30917f3291a9e78d5d1ff995961ade14a47c3ef8.tar.xz site-30917f3291a9e78d5d1ff995961ade14a47c3ef8.zip | |
chore: add devenv
| -rw-r--r-- | .gitignore | 12 | ||||
| -rw-r--r-- | devenv.nix | 46 | ||||
| -rw-r--r-- | devenv.yaml | 18 |
3 files changed, 75 insertions, 1 deletions
@@ -24,4 +24,14 @@ result-* .direnv # Ignore NixOS interactive test driver history -**/.nixos-test-history
\ No newline at end of file +**/.nixos-test-history +# Devenv +.devenv* +devenv.local.nix +devenv.local.yaml + +# direnv +.direnv + +# pre-commit +.pre-commit-config.yaml diff --git a/devenv.nix b/devenv.nix new file mode 100644 index 0000000..9d22604 --- /dev/null +++ b/devenv.nix @@ -0,0 +1,46 @@ +{ pkgs, lib, config, inputs, ... }: + +{ + # https://devenv.sh/basics/ + env.GREET = "devenv"; + + # https://devenv.sh/packages/ + packages = [ pkgs.git ]; + + # https://devenv.sh/languages/ + # languages.rust.enable = true; + + # https://devenv.sh/processes/ + # processes.dev.exec = "${lib.getExe pkgs.watchexec} -n -- ls -la"; + + # https://devenv.sh/services/ + # services.postgres.enable = true; + + # https://devenv.sh/scripts/ + scripts.hello.exec = '' + echo hello from $GREET + ''; + + # https://devenv.sh/basics/ + enterShell = '' + hello # Run scripts directly + git --version # Use packages + ''; + + # https://devenv.sh/tasks/ + # tasks = { + # "myproj:setup".exec = "mytool build"; + # "devenv:enterShell".after = [ "myproj:setup" ]; + # }; + + # https://devenv.sh/tests/ + enterTest = '' + echo "Running tests" + git --version | grep --color=auto "${pkgs.git.version}" + ''; + + # https://devenv.sh/git-hooks/ + # git-hooks.hooks.shellcheck.enable = true; + + # See full reference at https://devenv.sh/reference/options/ +} diff --git a/devenv.yaml b/devenv.yaml new file mode 100644 index 0000000..3dcab58 --- /dev/null +++ b/devenv.yaml @@ -0,0 +1,18 @@ +# yaml-language-server: $schema=https://devenv.sh/devenv.schema.json +inputs: + nixpkgs: + url: github:cachix/devenv-nixpkgs/rolling + +# If you're using non-OSS software, you can set allow_unfree to true. +# allow_unfree: true + +# If you're not willing to allow unsupported packages: +# allow_unsupported_system: false + +# If you're willing to use a package that's vulnerable +# permitted_insecure_packages: +# - "openssl-1.1.1w" + +# If you have more than one devenv you can merge them +#imports: +# - ./backend |
