diff --git a/.gitignore b/.gitignore index b2be92b..7d4319c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,16 @@ result + +mutable_config/zed/prompts/* + +.DS_Store + +# Devenv +.devenv* +devenv.local.nix +devenv.local.yaml + +# direnv +.direnv + +# pre-commit +.pre-commit-config.yaml diff --git a/config/nushell/config.nu b/config/nushell/config.nu index c601458..766242d 100644 --- a/config/nushell/config.nu +++ b/config/nushell/config.nu @@ -103,7 +103,7 @@ source $"($nu.cache-dir)/starship.nu" source $"($nu.cache-dir)/carapace.nu" source $"($nu.cache-dir)/zoxide.nu" source $"($nu.cache-dir)/atuin.nu" -source $"($nu.cache-dir)/mise.nu" +source $"($nu.cache-dir)/devenv.nu" #-------- # Scripts diff --git a/config/nushell/env.nu b/config/nushell/env.nu index 0071f9f..de9edad 100644 --- a/config/nushell/env.nu +++ b/config/nushell/env.nu @@ -32,12 +32,7 @@ if (which zoxide | is-not-empty) { zoxide init nushell | save -f $"($nu.cache-di if (which atuin | is-not-empty) { atuin init nu | save -f $"($nu.cache-dir)/atuin.nu" } else { "" | save -f $"($nu.cache-dir)/atuin.nu" } $env.CARAPACE_BRIDGES = 'zsh,fish,bash,inshellisense' if (which carapace | is-not-empty) { ^carapace _carapace nushell | str replace '$env.config = $current' '$env.config = ($env.config? | default {} | merge $current)' | save -f $"($nu.cache-dir)/carapace.nu" } else { "" | save -f $"($nu.cache-dir)/carapace.nu" } - -if (which mise | is-not-empty) { - mise activate nu | save -f $"($nu.cache-dir)/mise.nu" -} else { - "" | save -f $"($nu.cache-dir)/mise.nu" -} +if (which devenv | is-not-empty) { devenv hook nu | save -f $"($nu.cache-dir)/devenv.nu" } else { "" | save -f $"($nu.cache-dir)/devenv.nu" } # Deduplicate PATH at the end $env.PATH = ($env.PATH | uniq) diff --git a/devenv.lock b/devenv.lock new file mode 100644 index 0000000..953257d --- /dev/null +++ b/devenv.lock @@ -0,0 +1,65 @@ +{ + "nodes": { + "devenv": { + "locked": { + "dir": "src/modules", + "lastModified": 1789480904, + "narHash": "sha256-anHWHTkxI7423/eUroN9Rc4+H8VIGyIUWq/hV1egBDQ=", + "owner": "cachix", + "repo": "devenv", + "rev": "0fd5e6d3a9b2ae6f10205a3e95e0ca58d526c5a6", + "type": "github" + }, + "original": { + "dir": "src/modules", + "owner": "cachix", + "repo": "devenv", + "type": "github" + } + }, + "nixpkgs": { + "inputs": { + "nixpkgs-src": "nixpkgs-src" + }, + "locked": { + "lastModified": 1789506231, + "narHash": "sha256-vNkJbtmqyBfFhn/HnzQo4ROuoyYWuy/allqTfJb4kMY=", + "owner": "cachix", + "repo": "devenv-nixpkgs", + "rev": "c2f38fe7f9e04d9aadd354d380f2bd40531d9737", + "type": "github" + }, + "original": { + "owner": "cachix", + "ref": "rolling", + "repo": "devenv-nixpkgs", + "type": "github" + } + }, + "nixpkgs-src": { + "flake": false, + "locked": { + "lastModified": 1789370336, + "narHash": "sha256-6RSEDHIWQtesQKWSu5qRai8L2h4KgCgMEfJHstW99G4=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "c7def046b9a883d46974757852106483d741586f", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "devenv": "devenv", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} \ No newline at end of file diff --git a/devenv.nix b/devenv.nix new file mode 100644 index 0000000..07aebf6 --- /dev/null +++ b/devenv.nix @@ -0,0 +1,11 @@ +{ pkgs, lib, config, inputs, ... }: + +{ + + packages = [ pkgs.git ]; + + # 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..a2d8ac9 --- /dev/null +++ b/devenv.yaml @@ -0,0 +1,6 @@ +# yaml-language-server: $schema=https://devenv.sh/devenv.schema.json +inputs: + nixpkgs: + url: github:cachix/devenv-nixpkgs/rolling + +allow_unfree: true