1
0
Fork 0

Fix README

This commit is contained in:
Daniel Kempkens 2022-02-03 23:44:00 +01:00
parent 47d9b710e0
commit 4c52d8a1a7

View file

@ -2,27 +2,31 @@
⚠️ I have switched to a combination of `nix-darwin` and `home-manager`. The installation instructions below do not work that setup.
```bash
# nix
sh <(curl -L https://nixos.org/nix/install)
<details>
<summary>Click to expand!</summary>
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
sudo echo 'auto-optimise-store = true' >> /etc/nix/nix.conf
```bash
# nix
sh <(curl -L https://nixos.org/nix/install)
# 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
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
sudo echo 'auto-optimise-store = true' >> /etc/nix/nix.conf
# Configuration
cd ~/.config
git clone git@github.com:nifoc/dotfiles.git nixpkgs
home-manager switch --flake ~/.config/nixpkgs/#$USER
# 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
sudo cachix use nix-community
```
# Configuration
cd ~/.config
git clone git@github.com:nifoc/dotfiles.git nixpkgs
home-manager switch --flake ~/.config/nixpkgs/#$USER
sudo cachix use nix-community
```
</details>
## Overlays