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
flarum, nixos/flarum: init at 0.1.0-beta.13 #96869
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple discussion points on the module. I haven't reviewed the package.
description = "Domain to serve on."; | ||
}; | ||
|
||
installPath = mkOption { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this needed for? It looks like the software is packaged so you don't need to install (already in /nix/store
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, the software needs to reside in a writable file system location.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of the software, or just the storage/
folder and config.php
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
serviceConfig = { | ||
Type = "oneshot"; | ||
}; | ||
script = with cfg; '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be worth replacing this with systemd.tmpfiles.rules
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The installPath will contain state: config.php
, storage/
. The software checks for writeability of these paths.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@astro can this be resolved after doing #96869 (comment) ?
ae48754
to
2718b9c
Compare
This PR has been improved to run the installer fully automatic. Rebased. |
@astro if you're still interested in working in this and need and help just ping. |
@astro what is the status of this? |
@aanderse Ping. I could definitively use a hand with leaving more files in the nix store. |
@astro - see https://github.com/aanderse/nixpkgs/blob/48c8f0302af71c4db7f271bfe51bb157ed4b2831/nixos/modules/services/web-apps/flarum.nix for my take on the module. A few notes:
There is definitely some room for improvement:
Questions? Comments? Love it? Hate it? Let me know. I hope this has helped.
|
ping @astro |
Awesome! Finally someone who is savvy with all that PHP stuff. :-) Do you mind proposing your own PR, take all the credits, and we close this one? Cc: @sbourdeauducq |
Well... I'm not familiar with this software, I don't have any interest in running this software, and I don't want to maintain this module in NixOS... I was just trying to help out 🤷♂️ |
I marked this as stale due to inactivity. → More info |
copy installPhase build script from closed PR NixOS/nixpkgs#96869 fix typo
Motivation for this change
Adds Flarum discussion platform web application. Includes NixOS module.
The
dependencies
subpackage is output from composer2nix.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)