khuedoan / homelab

Fully automated homelab from empty disk to running services with a single command.
https://homelab.khuedoan.com
GNU General Public License v3.0
7.9k stars 705 forks source link

Nix image update breaks 'make tools' #113

Closed brimdor closed 1 year ago

brimdor commented 1 year ago

Describe the bug

nixos/nix in docker hub was updated about 8 hours ago as of writing this. Unfortunately, it alters the id 0 user which is incompatible with the homelab build automation and you get the following error when attempting to run 'make tools'

warning: the group 'nixbld' specified in 'build-users-group' does not exist

In order to fix this, I had to edit homelab/Makefile line stating the image in the tools argument from 'nixos/nix' to 'nixox/nix:2.15.1'

If you continue forward with make tools and ignoring the error, you will not be able to run any commands as the default user.

khuedoan commented 1 year ago

Thanks for reporting the issue!

I think the new image is not compatible with the current cache, I tried to remove the cache volume and it seems to work:

docker volume rm homelab-tools-cache homelab-tools-nix
brimdor commented 1 year ago

verified that clearing those volumes work. Thanks @khuedoan