Skip to content

Commit

Permalink
thelounge: write out default path for thelounge
Browse files Browse the repository at this point in the history
The output file is found and handled by thelounge itself [1], leaving
the user free to override THELOUNGE_HOME in the environment if they
choose, but having a sensible default to make `thelounge` generally
usable in most cases.

This solution follows discussion on NixOS#70318.

[1] https://github.com/thelounge/thelounge/blob/9ef5c6c67e463c1f401e33b21dfb5641636e5ed1/src/command-line/utils.js#L56
  • Loading branch information
nuxeh committed May 1, 2020
1 parent 43a4f12 commit df2f8d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion nixos/modules/services/networking/thelounge.nix
Expand Up @@ -62,7 +62,6 @@ in {
systemd.services.thelounge = {
description = "The Lounge web IRC client";
wantedBy = [ "multi-user.target" ];
environment = { THELOUNGE_HOME = dataDir; };
preStart = "ln -sf ${pkgs.writeText "config.js" configJsData} ${dataDir}/config.js";
serviceConfig = {
User = "thelounge";
Expand Down
3 changes: 3 additions & 0 deletions pkgs/development/node-packages/default-v10.nix
Expand Up @@ -125,5 +125,8 @@ nodePackages // {

thelounge = nodePackages.thelounge.override {
buildInputs = [ nodePackages.node-pre-gyp ];
postInstall = ''
echo /var/lib/thelounge > $out/lib/node_modules/thelounge/.thelounge_home
'';
};
}

0 comments on commit df2f8d9

Please sign in to comment.