Personal dotfiles that can be placed in the public repository
Also known as ηζ ½(bonsai) π³
If you are using Podman, you can test the pre-built container-image as follows.
bash <(curl -fsSL https://raw.githubusercontent.com/kachick/dotfiles/main/containers/sandbox-with-ghcr.bash) latest
Or, you can directly use some commands with nix run
without any installation steps.
nix run 'github:kachick/dotfiles#todo'
nix run 'github:kachick/dotfiles#bench_shells'
nix run 'github:kachick/dotfiles#git-delete-merged-branches'
nix run 'github:kachick/dotfiles#walk'
nix run 'github:kachick/dotfiles#prs'
- Install Nix package manager with DeterminateSystems/nix-installer to enable Flakes by default.
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
- Make sure there is a nix directory that is used in the home-manager.
This is a workaround, See the thread for detailmkdir -p ~/.local/state/nix/profiles
- Restart current shell to load Nix as a PATH
bash
- Apply dotfiles for each use
Candidates
nix run 'github:kachick/dotfiles#home-manager' -- switch -b backup --flake 'github:kachick/dotfiles#user@linux'
user@linux
# Used in containerkachick@linux
This repository does not save the hardware-configuration.nix
for each host,
so you should activate with --impure
to load /etc/nixos/hardware-configuration.nix
in your local
sudo nixos-rebuild switch --impure --flake .#nixos-desktop
sudo reboot now
Activate kachick@macbook
as Linux
After installing WSL2, you can activate home-manager with kachick@wsl
as Linux.
Read Windows README and CI for further detail.
If you are developing this repository, the simple reactivation is as follows.
makers apply user@linux
Using podman may require to install some dependencies without Nix
# "shadow" in nixpkg is not enough for podman - https://github.com/NixOS/nixpkgs/issues/138423
sudo apt-get install uidmap
If you encounter any errors in the above steps, Check and update CI and wiki.