Skip to content

HikaruEgashira/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

Requirements

Setup

# clone
gh repo clone HikaruEgashira/dotfiles
cd dotfiles

# setup config
mkdir -p $HOME/.config/home-manager
ln -f ./home.nix $HOME/.config/home-manager/home.nix

# edit ./home.nix
sed -i "s|hikae|$USER|g" ./home.nix  # etc...

# setup home-manager
nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz home-manager
nix-channel --update
export NIX_PATH=$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels${NIX_PATH:+:$NIX_PATH}
nix-shell -I $HOME/.nix-defexpr/channels '<home-manager>' -A install # home-manager switch

https://nix-community.github.io/home-manager/index.xhtml#sec-install-standalone

install nix

if [ ! -d /nix ]; then
    sudo mkdir /nix && sudo chown $USER /nix
fi
sh <(curl -L https://nixos.org/nix/install) --no-daemon
. $HOME/.nix-profile/etc/profile.d/nix.sh

https://nixos.org/download/

uninstall

NOTICE: remove . "\$HOME/.nix-profile/etc/profile.d/nix.sh" line in your ~/.zshrc

rm -rf $HOME/{.nix-channels,.nix-defexpr,.nix-profile,.config/home-manager}
sudo rm -rf /nix

install nerdctl

https://github.com/containerd/nerdctl/releases

curl -sSL https://github.com/containerd/nerdctl/releases/download/v1.7.2/nerdctl-full-1.7.2-linux-amd64.tar.gz | sudo tar Cxzv /usr/local/
sudo systemctl enable --now containerd
sudo nerdctl run -d --name nginx -p 80:80 nginx:alpine

font list

WSLメインなのでHome-managerで管理しない

トラブルシュート

  • nixが見つからなくなった
if [ -e /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh ]; then
    . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
fi

Docker

https://zenn.dev/sqer/articles/644bb456c56c0f https://docs.docker.com/compose/install/linux/#install-the-plugin-manually

About

minimal

Resources

Stars

Watchers

Forks

Languages