aranw / nix

my ~/.config/nixpkgs folder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nix

uses nix

my nixpkgs setup and overlays

install

# install nix
## linux and mac
curl -L https://nixos.org/nix/install | sh

# configure nix
mkdir -p ~/.config/nix/
echo -e 'max-jobs = auto\ntarball-ttl = 0\nexperimental-features = nix-command flakes' >>~/.config/nix/nix.conf

# if multi-user install, add current user as trusted
echo "trusted-users = root $USER" | sudo tee -a /etc/nix/nix.conf && sudo pkill nix-daemon

# cachix (optional)
nix-env -iA nixpkgs.cachix
cachix use jacobi

# install home manager (if using it)
echo "export NIX_PATH=/nix/var/nix/profiles/per-user/$USER/channels:nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixpkgs:/nix/var/nix/profiles/per-user/root/channels" | sudo tee -a /etc/profile
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

# pull repo into ~/.config/nixpkgs/
cd ~/.config/nixpkgs
rm home.nix

# read only
git clone https://github.com/jpetrucciani/nix.git .

# write access (requires a ssh key)
git clone git@github.com:jpetrucciani/nix.git .

# enable home-manager
home-manager switch

About

my ~/.config/nixpkgs folder


Languages

Language:Nix 97.0%Language:Shell 3.0%