Skip to content

sumitftr/nixos-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install Instructions

  nix-shell -p git
  git clone https://github.com/sumitftr/nixos-config.git
  cd nixos-config

Add host by doing:

  ./host-add <HOSTNAME>
  git add .
  sudo nixos-rebuild switch --flake .#<HOSTNAME>

Link your configs by doing:

  ./init.nu

Note:

For updating package versions you have to update flake.lock file. To do that, run: nix flake update. Then stage the flake.lock file, using git add -u.

Moving Configuration: Copy this flake to your preferred path. Run ./init.nu to recreate symlinks to your present configuration path. You can then delete the original flake.

Sometimes nixos doesn't allows user to rebuild your configuration due to ownership issues. To get around this problem, run: sudo chown -R <USERNAME>:users .