Skip to content

lleheny0/nixos-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installing from scratch

1. Add necessary channels and update

sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos
sudo nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
sudo nix-channel --add https://github.com/NixOS/nixos-hardware/archive/master.tar.gz nixos-hardware
sudo nix-channel --update

2. Generate SSH key

ssh-keygen -t ed25519 -C "[email protected]"
ssh-add /home/luke/.ssh/id_ed25519
cat /home/luke/.ssh/id_ed25519.pub

Add it to Github

3. Install vim and git in a temp shell

nix-shell -p vim git

4. Clone repository

cd
mkdir Projects
cd Projects
git clone [email protected]:lleheny0/nixos-config.git

5. Relocate harware-configuration.nix

sudo mv /etc/nixos/hardware-configuration.nix /home/luke/Projects/nixos-config/

6. Create symlink to configuration.nix

sudo rm /etc/nixos/configuration.nix
sudo ln -s /home/luke/Projects/nixos-config/configuration.nix /etc/nixos/configuration.nix

7. Import system

vim configuration.nix

Replace the line

# Import system here

with something like

./systems/desktop.nix

8. Rebuild

rm /home/luke/.mozilla -rf
sudo nixos-rebuild boot

(Home Manager will throw an error if the .mozilla folder already exists)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages