Warning
Set up the repository with the proper hooks. Run pre-commit install
in the root directory of the repository.
ichi
- Apple (Intel)ni
- Apple (M)work
- Apple (M) - Work device
- Install Nix
$ sh <(curl -L https://nixos.org/nix/install) # or $ curl -L https://nixos.org/nix/install | sh
- Download configuration
$ nix-shell -p git --run 'git clone https://github.com/jorgechato/.dotfiles.git ~/.dotfiles'
- Install configuration
$ nix run nix-darwin --experimental-features 'nix-command flakes' -- switch --impure --flake ~/.dotfiles/nix#ni # change ni with the device name
- Enable
1Password
ssh - Enable Dock magnify and run the configuration again with
darwin-rebuild switch
- Set up nushell
- Import
raycast
configuration- Disable spotlight hotkeys
- Import
streamdeck
configuration - Disable mission control hot corners
- Add Keyboard input sources (System settings > Keyboard > Text input > Input Sources)
- Install
node
withfnm install 22.11
- Setup rust version
rustup default stable
If nu
is not in your path, most likely it's in /run/current-system/sw/bin/nu
folder.
$ export XDG_CONFIG_HOME="/Users/jorge/.config" #or if you are in fish: $ set XDG_CONFIG_HOME "/Users/jorge/.config"
$ sudo echo $(which nu) >> /etc/shells
$ chsh -s $(which nu)
# If the new term doesn't use the correct XDG_CONFIG_HOME, run:
$ echo "source ~/.config/nushell/config.nu" | sudo $nu.current-exe --stdin -c "save -f $nu.config-path"
$ echo "source ~/.config/nushell/env.nu" | sudo $nu.current-exe --stdin -c "save -f $nu.env-path"
- Add package to
environment.systemPackages
innix/modules/nixos/pkgs.nix
ornix/modules/nixos/deps/*
- Install package
$ darwin-rebuild switch --impure --flake ~/.dotfiles/nix#ni # change ni with the device name
This error is due to the use of a git folder for nix flakes. To fix it, you need to commit your changes before running the command.
error: I need to back up /etc/bashrc to /etc/bashrc.backup-before-nix, but the latter already exists.
$ sudo rm -rf /etc/bashrc /etc/bashrc.backup-before-nix /etc/bashrc.before-nix-darwin /etc/bash.bashrc.backup-before-nix /etc/zshrc /etc/zshrc.backup-before-nix && \
sudo touch /etc/bashrc && \
sudo touch /etc/zshrc && \
sudo unlink /etc/bashrc && \
sudo unlink /etc/zshrc