- (Ubuntu) Install curl and git
sudo apt install curl; sudo apt install git
- (All) Use determinate systems installer to install the Nix package manager
- (MacOS) Install nix-darwin which provides access to MacOS system settings
- (All) Install home-manager standalone version
Linux: home-manager switch --flake github:JosiahBLB/dotfiles#linuxHome
MacOS: darwin-rebuild switch --flake github:JosiahBLB/dotfiles#genericDarwin
Alternatively for development you can use:
<cmd> build --flake .#<derivation>
or
<cmd> switch --flake .#<derivation>
After running home-manager, to set linux to your default shell you need to:
- Add the output of
which zsh
to/etc/shells
- Run
chsh -s "$(which zsh)"; sudo reboot
- Importing colors using
Profiles > Colors > Color > Color Presets... > Import...
- Setting compatible terminal keymappings using
Profiles > Keys > Key Mappings > Presets... > Natural Text Editing
- Un-setting
Apps can change how keys are reported
inProfiles > Keys > General
- Setting
Left Option key
toEsc+
inProfiles > Keys > General
(source) - Setting
Applications in terminal may access clipboard
inGeneral > Selection
(source) - Setting font to
JetBrainsMono Nerd Font Mono
with font size 14
- I accidentally reset (
⌘-R
) iterm2 and lost the ability to run binaries. This was fixed by temporarily adding the following to $PATHexport PATH="$PATH:/run/current-system/sw/bin"
and then runningdarwin-rebuild switch --flake .
again
Used the following command to get the latest nixpkgs where <input>
was nixpkgs
. This can be used for any of your flake inputs to update your flake.lock file.
nix flake lock --update-input <input>
Introduction to Nix programming
Nix offical documentation
Nix API search
Nix flakes
Nix package search (Nix options search also found here)
Nix-darwin options search
Home-manager options search