Merge pull request #70318 from nuxeh/nuxeh/theloungeenv
thelounge: Set THELOUNGE_HOME environment variable
This commit is contained in:
commit
5f9a48d919
@ -62,7 +62,6 @@ in {
|
|||||||
systemd.services.thelounge = {
|
systemd.services.thelounge = {
|
||||||
description = "The Lounge web IRC client";
|
description = "The Lounge web IRC client";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
environment = { THELOUNGE_HOME = dataDir; };
|
|
||||||
preStart = "ln -sf ${pkgs.writeText "config.js" configJsData} ${dataDir}/config.js";
|
preStart = "ln -sf ${pkgs.writeText "config.js" configJsData} ${dataDir}/config.js";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
User = "thelounge";
|
User = "thelounge";
|
||||||
|
@ -125,5 +125,8 @@ nodePackages // {
|
|||||||
|
|
||||||
thelounge = nodePackages.thelounge.override {
|
thelounge = nodePackages.thelounge.override {
|
||||||
buildInputs = [ nodePackages.node-pre-gyp ];
|
buildInputs = [ nodePackages.node-pre-gyp ];
|
||||||
|
postInstall = ''
|
||||||
|
echo /var/lib/thelounge > $out/lib/node_modules/thelounge/.thelounge_home
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user