Install ubuntu
インストール可能なディストリビューション一覧を確認する:
ubuntu--22.04
をインストールする:
wsl --install -d ubuntu-22.04
setup user
新規ユーザーを追加する:
ユーザに、sudo権限を付与する:
sudo gpasswd -a USER_NAME sudo
作成したユーザーでubuntuが起動するようにする:
ubuntu2204.exe config --default-user USER_NAME
setup fish shell
fishをインストールする:
sudo apt-add-repository ppa:fish-shell/release-3
sudo apt update
sudo apt install fish
https://launchpad.net/~fish-shell/+archive/ubuntu/release-3
起動シェルをfishにする:
setup chezmoi
chezmoiをインストールする:
sh -c "$(curl -fsLS get.chezmoi.io)"
PATH
を通す:
chezmoi を初期化する:
chezmoi init https://github.com/YOUR_NAME/DOTFILES_REPO.git
クローンしてきた内容を適用する:
install nix
curl -L https://nixos.org/nix/install | sh -s -- --no-daemon
https://nix.dev/install-nix
install packages
# starship (prompt)
nix profile install nixpkgs#starship
# gh (github cli)
nix profile install nixpkgs#gh
# bat (cat)
nix profile install nixpkgs#bat
# eza (ls)
nix profile install nixpkgs#eza
# ripgrep (grep)
nix profile install nixpkgs#ripgrep
# fd (find)
nix profile install nixpkgs#fd
# neovim (vim)
nix profile install nixpkgs#neovim