feat(nix): migrate asdf-vm

This commit is contained in:
Stefan Imhoff
2024-07-05 19:10:23 +02:00
parent 9175c0c88e
commit b383c144c6
11 changed files with 33 additions and 16 deletions

View File

@@ -11,7 +11,6 @@
- ~/.gnupg - ~/.gnupg
- link: - link:
~/.asdfrc: asdf/asdfrc
~/.config/base16-shell: .base16-shell ~/.config/base16-shell: .base16-shell
~/.config/fish: fish ~/.config/fish: fish
~/.config/gh-dash/config.yml: github/gh-dash/config.yml ~/.config/gh-dash/config.yml: github/gh-dash/config.yml
@@ -28,9 +27,6 @@
~/.config/tmux/tmux-nerd-font-window-name.yml: tmux/tmux-nerd-font-window-name.yml ~/.config/tmux/tmux-nerd-font-window-name.yml: tmux/tmux-nerd-font-window-name.yml
~/.config/zed/settings.json: zed/settings.json ~/.config/zed/settings.json: zed/settings.json
~/.curlrc: url/curlrc ~/.curlrc: url/curlrc
~/.default-gems: asdf/default-gems
~/.default-npm-packages: asdf/default-npm-packages
~/.default-python-packages: asdf/default-python-packages
~/.editorconfig: style/editorconfig ~/.editorconfig: style/editorconfig
~/.gitconfig: git/gitconfig ~/.gitconfig: git/gitconfig
~/.gitignore: git/gitignore ~/.gitignore: git/gitignore

View File

@@ -59,10 +59,6 @@ brew "jpeg-xl"
brew "aom" brew "aom"
# Record and share terminal sessions # Record and share terminal sessions
brew "asciinema" brew "asciinema"
# GNU File, Shell, and Text utilities
brew "coreutils"
# Extendable version manager with support for Ruby, Node.js, Erlang & more
brew "asdf"
# Improved shell history for zsh, bash, fish and nushell # Improved shell history for zsh, bash, fish and nushell
brew "atuin" brew "atuin"
# Bourne-Again SHell, a UNIX command interpreter # Bourne-Again SHell, a UNIX command interpreter
@@ -103,6 +99,8 @@ brew "closure-compiler"
brew "cmake" brew "cmake"
# Defines a standard way of committing rules and communicating it # Defines a standard way of committing rules and communicating it
brew "commitizen" brew "commitizen"
# GNU File, Shell, and Text utilities
brew "coreutils"
# Header-only library for parsing TOML # Header-only library for parsing TOML
brew "cpptoml" brew "cpptoml"
# Get a file from an HTTP, HTTPS or FTP server # Get a file from an HTTP, HTTPS or FTP server

View File

@@ -1,6 +0,0 @@
bundler
erb_lint
git-up
lunchy
neovim
tmuxinator

View File

@@ -79,7 +79,7 @@ set --export FZF_ALT_C_OPTS "--preview 'tree -C {} | head -50'"
set --export FZF_COMPLETE 0 set --export FZF_COMPLETE 0
# asdf Version Manager # asdf Version Manager
source (brew --prefix asdf)/libexec/asdf.fish source $(dirname $(dirname $(readlink -f $(which asdf))))/share/asdf-vm/asdf.fish
# Conda # Conda
set conda_path (brew --prefix)/Caskroom/miniconda/base/bin/conda set conda_path (brew --prefix)/Caskroom/miniconda/base/bin/conda

View File

@@ -0,0 +1,3 @@
bundler
erb_lint
neovim

View File

@@ -7,7 +7,7 @@ json-server
jsonlint jsonlint
lighthouse lighthouse
neovim neovim
netlify-cli
pageres-cli pageres-cli
trash-cli trash-cli
unlighthouse
yarn yarn

16
nix/home/asdf/default.nix Normal file
View File

@@ -0,0 +1,16 @@
{ pkgs, ... }:
{
home.file = {
".asdfrc" = { source = ./asdfrc; };
".tool-versions" = { source = ./tool-versions; };
".default-gems" = { source = ./default-gems; };
".default-npm-packages" = { source = ./default-npm-packages; };
".default-python-packages" = { source = ./default-python-packages; };
".asdf/lib".source = "${pkgs.asdf-vm}/share/asdf-vm/lib";
};
home.packages = [
pkgs.asdf-vm
];
}

View File

@@ -0,0 +1,9 @@
neovim stable
nodejs 18.17.1
ruby 3.2.2
python 3.9.9 3.10.9
rust 1.78.0
deno 1.27.0
lua 5.1
golang 1.20
direnv 2.32.2

View File

@@ -8,6 +8,7 @@ in
imports = [ imports = [
./ack ./ack
./ag ./ag
./asdf
./bat ./bat
./ctags ./ctags
./lazydocker ./lazydocker