2021-12-27 20:24:27 +00:00
|
|
|
## Installation
|
|
|
|
|
2022-02-03 22:35:52 +00:00
|
|
|
⚠️ I have switched to a combination of `nix-darwin` and `home-manager`. The installation instructions below only do not work that setup.
|
|
|
|
|
2021-12-27 20:24:27 +00:00
|
|
|
```bash
|
|
|
|
# nix
|
|
|
|
sh <(curl -L https://nixos.org/nix/install)
|
|
|
|
|
|
|
|
sudo echo 'experimental-features = nix-command flakes' >> /etc/nix/nix.conf
|
|
|
|
sudo echo 'keep-derivations = true' >> /etc/nix/nix.conf
|
|
|
|
sudo echo 'keep-outputs = true' >> /etc/nix/nix.conf
|
2022-01-10 11:28:59 +00:00
|
|
|
sudo echo 'auto-optimise-store = true' >> /etc/nix/nix.conf
|
2021-12-27 20:24:27 +00:00
|
|
|
|
|
|
|
# home-manager
|
|
|
|
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
|
|
|
|
nix-channel --update
|
|
|
|
nix-shell '<home-manager>' -A install
|
|
|
|
|
|
|
|
# Configuration
|
|
|
|
cd ~/.config
|
|
|
|
git clone git@github.com:nifoc/dotfiles.git nixpkgs
|
|
|
|
home-manager switch --flake ~/.config/nixpkgs/#$USER
|
|
|
|
|
|
|
|
sudo cachix use nix-community
|
|
|
|
```
|
2021-12-27 23:51:52 +00:00
|
|
|
|
|
|
|
## Overlays
|
|
|
|
|
|
|
|
* [neovim-nightly-overlay](https://github.com/nix-community/neovim-nightly-overlay)
|
|
|
|
* [nifoc-overlay](https://github.com/nifoc/nix-overlay)
|