You need to install Nix, but we are not using their official installer. Instead, we are using the Determinate Systems Nix Installer. Just simply paste the following command into your terminal and you should be good to go:
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
Some applications need to be installed through homebrew, so we just install it.
If you want to have your secrets decrypted lying in the repository, you need to have you age key located at /home/<username>/.config/sops/age/keys.txt
(linux) or /Users/<username>/Library/Application Support/sops/age/keys.txt
(darwin)
- Clone the repository
git clone [email protected]:kevinrudde/nix-dotfiles.git ~/.config/nix-dotfiles
- Initialize the Nix setup with
nix run nix-darwin -- switch --flake ~/.config/nix-dotfiles
- If you want to apply your changes in the future you need to run
darwin-rebuild switch --flake ~/.config/nix-dotfiles/ --show-trace
I am using the standard german layout, to have the same layout as Windows and Linux.
- Go to "Sytem Settings > Keyboard > Text Input".
- There you can change the layout by clicking on edit.
- Now another window is opening. Click on + in the left side to add another layout.
- Select German and then "German - Standard". Save it.
I have swapped my ctrl and cmd key on my external keyboard. You can simply do that aswell.
- Go to "Sytem Settings > Keyboard" and click on "Keyboard Shortcuts...".
- Switch to the "Modifier Keys" tab and select your external keyboard in the top
- Set Control to Command and Command to Control
You can change your default shell with
chsh -s <Change this to your shell path which you can find in /etc/shells there is a comment with shells managed by nix>