nix-config/ is managed with this structure:
nix-config/
├── flake.nix
├── flake.lock
├── .gitignore
├── README.md
├── dotfiles/
│ ├── .config/
│ │ ├── cmux/
│ │ │ └── cmux.json
│ │ ├── nvim/
│ │ │ └── init.vim
│ │ └── starship.toml
│ ├── .editorconfig
│ ├── .latexmkrc
│ ├── .tmux.conf
│ ├── .vimrc
│ └── .zshrc
├── hosts/
│ ├── google-vm-instance-0/
│ │ └── home.nix
│ ├── m1-macbook-air/
│ │ ├── darwin-configuration.nix
│ │ └── home.nix
│ └── m5-macbook-air/
│ ├── darwin-configuration.nix
│ └── home.nix
└── modules/
├── cmd-eikana.nix
└── dotfiles.nix
mkdir -p ~/.config
cd ~/.config
git clone https://github.com/AtsuneMogi/nix-config
cd nix-configUse one of the following host names:
m1-macbook-airm5-macbook-air
sudo nix run nix-darwin -- switch --flake .#m1-macbook-air
# or
sudo nix run nix-darwin -- switch --flake .#m5-macbook-airUse this host name:
google-vm-instance-0
nix run home-manager -- switch --flake .#google-vm-instance-0nix flake update