Skip to content

mech-pig/nix-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Nix/NixOS configuration files.

Install as NixOS configuration

Clone repository and submodules:

git clone --recursive https://github.com/mech-pig/nix-config.git

Remove any existing /etc/nixos/configuration.nix file and link the new configuration with:

sudo sh link.sh

Finally, activate the configuration:

sudo nixos-rebuild switch

Update NixOS version

  • Replace nixos channel alias to make it point to the correct version sudo nix-channel --add https://nixos.org/channels/nixos-XX.YY nixos
  • Do the same for the home-manager channel: sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-XX.YY.tar.gz home-manager (ensure the version of home-manager matches the nixos one)
  • Update the channels: sudo nix-channel --update
  • Build the system and reboot: sudo nixos-rebuild --upgrade boot

Troubleshooting

Repair the bootloader

This happened to me after I replaced an ssd with a new one. This operation has somehow corrupted the partition mapping and I was not able to boot neither into nixos nor into windows. I solved the problem by fixing the Windows EFI entry in the bootloader (references to disk partitions were wrong) followed by a rebuild of the nixos systemd-boot entries (this procedure is provided by nixos itself).

References

About

Personal collection of Nix/NixOS expressions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published