Skip to content

cvoege/nix-old

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nix

uses nix

my nixpkgs folder

install

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

# configure nix to use more cpu/ram when building
mkdir -p ~/.config/nix/
echo -e 'max-jobs = auto\nexperimental-features = nix-command flakes' >~/.config/nix/nix.conf

# Add necessary nix channels
# nix-channel --add https://nixos.org/channels/nixos-unstable nixpkgs
# nix-channel --add nixpkgs https://nixos.org/channels/nixpkgs-unstable nixpkgs
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --add https://github.com/kwbauson/cfg/archive/main.tar.gz kwbauson-cfg
nix-channel --update
nix-shell '<home-manager>' -A install

# pull repo into ~/.config/home-manager/
cd ~/.config/home-manager
rm ~/.config/home-manager/*
git clone [email protected]:cvoege/nix.git .

# move unneeded files
mv ~/.profile ~/.profile.old
mv ~/.bashrc ~/.bashrc.old
mv ~/.bash_profile ~/.bash_profile.old
mv ~/.gitconfig ~/.gitconfig.old
mv ~/.tmux.conf ~/.tmux.conf.old

# enable home-manager and build packages
home-manager switch
# . /Users/colton/.nix-profile/etc/profile.d/hm-session-vars.sh
# . "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages