-
Notifications
You must be signed in to change notification settings - Fork 569
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
NixOS (Linux) Mesh Agent #5802
Comments
You can just download the binary file directly from the web ui, then run Edit. I've never heard of nixos isn't it just an x64 bit platform? |
I talked about immutable Linux in #5384, about SteamOS. The issue was that you can't write the systemd service into /etc/systemd/system/. Sadly it wouldn't stay connected. |
It's an immutable distro, sort of like Fedora Silverblue or SteamOS3 |
NixOS usually handles this with symlinks. Lots of binaries get packaged this way for Nix, there are over 80,000 packages in the repo. https://search.nixos.org/packages. Someone just has to take an interest and dive in. I'm working on this myself but it's a steep learning curve. So far I have gotten the installer to launch, but it complains about not running as sudo (it is running as sudo). I'll keep digging in as I have the time. |
It looks like NixOS knows this is going to be a common issue for users. https://nixos.wiki/wiki/Extend_NixOS Shows how to extend the system with additional software, and how to upload your package to the repo. |
Until a native NixOS solution is created, I've put together a workaround using Docker. Desktop tab does not work, but Terminal and Files work good, so perfectly fine for a headless NixOS install: https://github.com/Kuuchuu/meshagent-docker |
NixOS is essentially a source-based distro which doesn't follow FHS. This is highly problematic when pre-built binaries must be run as those are usually built with a lot of assumptions about the OS which are not true for immutable distros and much less for NixOS. The proper solution for NixOS is to build the agent from source properly using nix tooling. Is it possible to build the agent from MeshCentral sources? Another possibility, though less preferred, would be to ship a completely statically built binary which makes zero assumptions about the system. I'm sure NixOSers would be happy with a simplified agent that just runs and doesn't try to do any kind of system configuration. |
NixOS is gaining in popularity among Linux users, due to being an immutable / declarative style OS. There are thousands of packages available for it, including the MeshCentral server. However the Mesh Agent is not available.
The standard method of installation for Linux agents appears to be downloading a bash script and running it. This is not my preferred way to install software on Linux, and absolutely won't work on NixOS, as all packages are installed by Nix from a config file.
How do you go about adding Mesh Agent support for various Linux distributions? If someone can explain the codebase a little, I would be willing to take a stab at this.
The text was updated successfully, but these errors were encountered: