Skip to content

GiyoMoon/nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

.nix

Jasi's macOS nix configs.

Inspired by @okkdev's Nix configs 🌟

⚑️ Installation

✨ Prerequisites

βž– Install Nix

sh <(curl -L https://nixos.org/nix/install) --daemon

Restart your shell after installing nix to make sure the nix command is available.


βž– Install brew (Will also install Command Line Tools for Xcode)

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Disable analytics
/opt/homebrew/bin/brew analytics off

πŸ“ Clone this config

git clone https://github.com/GiyoMoon/nix ~/.nix

πŸ”₯ Activate config

βž– Enable nix-command and flakes and symlink to the home-manager config directory

mkdir -p ~/.config/nix
cat <<EOF > ~/.config/nix/nix.conf
experimental-features = nix-command flakes
EOF
ln -s ~/.nix ~/.config/home-manager

βž– Activate the config

cd ~/.nix
nix run home-manager -- switch

βž– 🚨 Fish needs to be set as the default shell manually

echo /Users/jasi/.nix-profile/bin/fish | sudo tee -a /etc/shells
chsh -s /Users/jasi/.nix-profile/bin/fish

🚨 You need to log out and log in again for all changes to take effect. A restart does NOT work properly.

πŸŽ‰ Done

That's it! πŸš€

Things you might want to do:

  • Remove spotlight shortcut in Settings > Keyboard > Shortcuts > Spotlight
  • Remove spotlight from the menu bar in Settings > Control Centre > Menu Bar Only > Spotlight

πŸ” Update config

If you made any changes and want to update, you can run the home manager switch command directly to apply the changes:

nix flake update # optionally update flakes
home-manager switch

About

🌺 Nix configs for my Macbook

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published