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

Package request: dashy #246137

Closed
sburris0 opened this issue Jul 30, 2023 · 6 comments · Fixed by #360933
Closed

Package request: dashy #246137

sburris0 opened this issue Jul 30, 2023 · 6 comments · Fixed by #360933
Labels
0.kind: packaging request Request for a new package to be added

Comments

@sburris0
Copy link

"Dashy helps you organize your self-hosted services by making them accessible from a single place"

I self-host many services with NixOS and would like to setup a nice dashboard/homepage that links to them all so that I don't have to remember any ports. I was a bit surprised that dashy didn't have a package already, as it is extremely popular on github.

Metadata

There are instructions to deploy with docker, but also instructions to deploy from source

@sburris0 sburris0 added the 0.kind: packaging request Request for a new package to be added label Jul 30, 2023
@midnightveil
Copy link
Contributor

midnightveil commented Aug 19, 2023

@yorickvP
Copy link
Contributor

yorickvP commented Oct 1, 2023

I also have one https://git.yori.cc/yorick/dotfiles/src/branch/master/pkgs/dashy.nix

It's a bit annoying because it likes to run yarn build at runtime when you change the config, even though I'm not sure it needs to. It also depends on nodejs 16, which is EOL

@flyfloh
Copy link
Contributor

flyfloh commented Nov 23, 2024

Looks like it was packaged in #349149 and a module added in #355979

@sburris0
Copy link
Author

Yep, looks like it. Closing this issue.

@TheRealGramdalf
Copy link
Contributor

Hey everyone,
Turns out I missed this package request when I made the initial PRs, so nobody got a mention - sorry everyone and thanks @flyfloh for catching that!

I thought I should make note that the package is currently broken - TL;DR is no settings ever actually get applied. I'm making a PR to fix this, which I'll link to this PR.

It's a bit annoying because it likes to run yarn build at runtime when you change the config, even though I'm not sure it needs to. It also depends on nodejs 16, which is EOL

@yorickvP - This is actually what the docker image upstream does - it runs a node server that serves the static webapp, which gets rebuilt whenever you make changes. In the current package I've diverged from that, instead opting to build the static webapp once at build, and serve it with nginx rather than running a full node server - there's more information in the initial PR (with some links to the relevant docs upstream) if you want to take a closer look.
The primary benefit of this approach is that it's much more lightweight, since a full node server typically takes upwards of 1.3GB (based on when I was running dashy in docker), compared to the ~10 MB it takes to run nginx. In the future I'd like to support running a node server for those that want it (some features such as widgets are unavailable without it), so I'll likely reference your module for that. Is this the most recent version of the module, or were there later revisions?

Lastly regarding node 16, I'm sticking with nodePackages.nodejs, which currently points to 20.18.0. I'm not sure if that will change when it comes to running the full server or not.

@yorickvP
Copy link
Contributor

yorickvP commented Dec 2, 2024

@TheRealGramdalf I gave up on running dashy, I think that module made everything read-only so it isn't really better than nginx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: packaging request Request for a new package to be added
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants