8000 GitHub - williamfligor/home
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

williamfligor/home

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MacOS

echo "" > /tmp/nix.conf
echo "trusted-users = root $USER" >> /tmp/nix.conf

sh <(curl -L https://nixos.org/nix/install) \
    --no-channel-add \
    --nix-extra-conf-file /tmp/nix.conf

# Disable spotlight indexing of /nix to speed up performance
sudo mdutil -i off /nix

nix-channel --add https://nixos.org/channels/nixos-21.11 nixpkgs
nix-channel --add https://nixos.org/channels/nixos-unstable nixos-unstable
nix-channel --add https://github.com/nix-community/home-manager/archive/release-21.11.tar.gz home-manager
nix-channel --update

git clone <> ~/.config/nixpkgs/

export NIX_PATH=$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels${NIX_PATH:+:$NIX_PATH}
nix-shell '<home-manager>' -A install

Linux

sh <(curl -L https://nixos.org/nix/install) \
    --no-daemon \
    --no-channel-add

nix-channel --add https://nixos.org/channels/nixos-21.11 nixpkgs
nix-channel --add https://nixos.org/channels/nixos-unstable nixos-unstable
nix-channel --add https://github.com/nix-community/home-manager/archive/release-21.11.tar.gz home-manager
nix-channel --update

git clone <> ~/.config/nixpkgs/

export NIX_PATH=$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels${NIX_PATH:+:$NIX_PATH}
nix-shell '<home-manager>' -A install

When MacOS isn't finding Nix binaries

Add

# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
   . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix

to /etc/zshenv

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0