Synology NAS is not supported: Action `create_group` errored
On Synology NAS:
- group can be added via
synogroup --add nix - user can be added to group via
synogroup --member nix $USER
Thanks! Looks like we'll need to add support.
Are you aware of any test VMs I might be able to use? Alternatively, what's the command to create a user? I only see how to add a user to a group.
I am not aware of any Synology NAS VM.
User can be added using synouser {--add} username passwd full name expired email app privilege
https://global.download.synology.com/download/Document/Software/DeveloperGuide/Firmware/DSM/All/enu/Synology_DiskStation_Administration_CLI_Guide.pdf
Hello, I have a synology nas and wanted to install nix. I spent most of the day intending to try and create a PR adding support for synology to this installer. I was able to install nix, but patching the DetSys installer wasn't enough; some manual steps were required.
I've written detailed instructions in the readme on the main branch of my fork for anyone who wants to replicate.
Here's a summary of what I've learned:
- Must set
NIX_INSTALLER_EXTRA_CONF='filter-syscalls = false'- I hit the same issue as #324
- The version of systemctl on the nas doesn't support the
--nowswitch- I've got systemd 219 and it looks like the flag was added in v220.
- The root partition doesn't have enough space to hold the nix store.
- Following the advice of #695, I ended up creating a bind mount. I wasn't able to create an /etc/fstab entry. More on this in the next point
- Synology's OS resets (at least some files in) /etc/ on reboot
- This meant I couldn't edit /etc/fstab for my bind mount of the nix store
- The only way I could get around this to make my mount persistent on reboots was to create an auto run script in the UI.
- I also had to create a script to auto-start the nix daemon.
I've left my patches to the DetSys installer on the initial-pr branch of my fork, but I don't think it's worth opening a PR because of the manual steps needed. Thoughts?