bradleygolden / nix-config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nix-config

Installation

# https://nixos.org/download.html
sh <(curl -L https://nixos.org/nix/install)

mkdir -p ~/.config/nix

# Enable nix-command and flakes
cat <<EOF > ~/.config/nix/nix.conf
experimental-features = nix-command flakes
EOF

# WARNING! Change any specific username, email, user info (try grepping "bradley")
cp -r *.nix flake.lock ~/.config/nix

# Until this is addressed https://github.com/LnL7/nix-darwin/issues/149
sudo mv /etc/nix/nix.conf /etc/nix/.nix-darwin.bkp.nix.conf

cd ~/.config/nix
nix build .\#darwinConfigurations."Bradleys-MacBook-Pro-2".system
./result/sw/bin/darwin-rebuild switch --flake .

FAQ

How do I uninstall nix?

https://nixos.org/manual/nix/stable/installation/installing-binary.html#uninstalling

References

About


Languages

Language:Nix 100.0%