Install NixOS on Kimsufi: Difference between revisions
imported>Kha Created page with "This guide explains how to install NixOS on [https://www.kimsufi.com/en/ Kimsufi] machines from the rescue system. It is based on [https://mgdm.net/weblog/nixos-on-kimsufi/ th..." |
imported>Joscherrer m Add command to disable sandboxing. Create /etc/sudoers.d/setupuser instead on modifying /etc/sudoers |
||
| Line 46: | Line 46: | ||
passwd setupuser | passwd setupuser | ||
# Give sudo rights to your user | |||
su setupuser -s /bin/bash | echo "setupuser ALL=(ALL) NOPASSWD: ALL" >/etc/sudoers.d/setupuser | ||
su setupuser -s /bin/bash -l | |||
# Disable sandboxing as it doesn't work in tmpfs mounted systems | |||
# see: https://github.com/NixOS/nix/issues/5934 | |||
sudo mkdir -p /etc/nix/ | |||
echo "sandbox = false" | sudo tee -a /etc/nix/nix.conf | |||
# Install Nix | # Install Nix | ||