feat: add devenv
This commit is contained in:
1 parent
6bddc039b3
commit
be976926f8
6 files changed
+99
-7
No files matched your search
+15
@@ -1 +1,16 @@
|
|||||||
result
|
result
|
||||||
|
|
||||||
|
mutable_config/zed/prompts/*
|
||||||
|
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
# Devenv
|
||||||
|
.devenv*
|
||||||
|
devenv.local.nix
|
||||||
|
devenv.local.yaml
|
||||||
|
|
||||||
|
# direnv
|
||||||
|
.direnv
|
||||||
|
|
||||||
|
# pre-commit
|
||||||
|
.pre-commit-config.yaml
|
||||||
@@ -103,7 +103,7 @@ source $"($nu.cache-dir)/starship.nu"
|
|||||||
source $"($nu.cache-dir)/carapace.nu"
|
source $"($nu.cache-dir)/carapace.nu"
|
||||||
source $"($nu.cache-dir)/zoxide.nu"
|
source $"($nu.cache-dir)/zoxide.nu"
|
||||||
source $"($nu.cache-dir)/atuin.nu"
|
source $"($nu.cache-dir)/atuin.nu"
|
||||||
source $"($nu.cache-dir)/mise.nu"
|
source $"($nu.cache-dir)/devenv.nu"
|
||||||
|
|
||||||
#--------
|
#--------
|
||||||
# Scripts
|
# Scripts
|
||||||
|
|||||||
@@ -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" }
|
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'
|
$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 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 devenv | is-not-empty) { devenv hook nu | save -f $"($nu.cache-dir)/devenv.nu" } else { "" | save -f $"($nu.cache-dir)/devenv.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"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Deduplicate PATH at the end
|
# Deduplicate PATH at the end
|
||||||
$env.PATH = ($env.PATH | uniq)
|
$env.PATH = ($env.PATH | uniq)
|
||||||
|
|||||||
+65
@@ -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
|
||||||
|
}
|
||||||
+11
@@ -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/
|
||||||
|
}
|
||||||
@@ -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
|
||||||
Reference in new issue
Block a user