March 23, 2021How to Fix a Broken Rollback on Nixos, caused by mixed Python EnvironmentsToday I tried to update a Nixos channel to 20.09.xxx, but the virtual machine was still running on 15.09, and seemingly the nix-version was pinned. I got an error saying something like the nix version is too low. I then tried to do a rollback, but then I got another following error: ERROR: ./batou --help Return code: 1 STDOUT Running unclean installation from requirements.txt Ensuring unclean install ... .batou/unclean/bin/python -m pip install -r requirements....
July 15, 2020How to Find Nginx Config File on a Nixos VmNixos… hm, a dream for my web hosting company, but a nightmare as a casual user :-D Compared to other Linux distributions, there are so many differences. For a start… where the heck is my nginx.conf? Hint - it is not in /etc/nginx/nginx.conf systemctl cat nginx ... X-CheckConfigCmd=/nix/store/xxx-nginx-1.14.2/bin/nginx -t -c /nix/store/xxx-nginx.conf -p /var/spool/nginx X-ConfigFile=/nix/store/xxx-nginx.conf In order to show the configuration, FlyingCircus (my hosting company) created a custom command nginx-show-config | less ....