Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synology NAS is not supported: Action create_group errored #585

Open
starsep opened this issue Jul 20, 2023 · 4 comments
Open

Synology NAS is not supported: Action create_group errored #585

starsep opened this issue Jul 20, 2023 · 4 comments

Comments

@starsep
Copy link

starsep commented Jul 20, 2023

On Synology NAS:

  • group can be added via synogroup --add nix
  • user can be added to group via synogroup --member nix $USER
@Hoverbear
Copy link
Contributor

Thanks! Looks like we'll need to add support.

@Hoverbear Hoverbear added this to the 0.10.1 milestone Jul 21, 2023
@Hoverbear Hoverbear modified the milestones: 0.11.0, 0.11.1 Aug 10, 2023
@Hoverbear
Copy link
Contributor

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.

@starsep
Copy link
Author

starsep commented Sep 17, 2023

I am not aware of any Synology NAS VM.

User can be added using synouser {--add} username passwd full name expired email app privilege
image
image
https://global.download.synology.com/download/Document/Software/DeveloperGuide/Firmware/DSM/All/enu/Synology_DiskStation_Administration_CLI_Guide.pdf

@Hoverbear Hoverbear modified the milestones: 0.12.0, 0.12.1, 0.12.2 Sep 25, 2023
@Hoverbear Hoverbear removed this from the 0.13.1 milestone Oct 3, 2023
@adam-gaia
Copy link

adam-gaia commented Aug 16, 2024

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'
  • The version of systemctl on the nas doesn't support the --now switch
    • 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.
  • 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants