From: Ismaƫl Bouya Date: Fri, 18 Jan 2019 13:57:10 +0000 (+0100) Subject: Fix missing file package for mastodon X-Git-Tag: nur_publish~320 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=21b095c7a2fc75e8ec991c963e9079071c7d8e28;p=perso%2FImmae%2FConfig%2FNix.git Fix missing file package for mastodon --- diff --git a/virtual/modules/websites/tools/mastodon/default.nix b/virtual/modules/websites/tools/mastodon/default.nix index 1549ca9..b2170b5 100644 --- a/virtual/modules/websites/tools/mastodon/default.nix +++ b/virtual/modules/websites/tools/mastodon/default.nix @@ -21,7 +21,7 @@ in { uid = config.ids.uids.mastodon; group = "mastodon"; description = "Mastodon user"; - home = "${mastodon.railsRoot}"; + home = mastodon.railsRoot; useDefaultShell = true; }; @@ -73,7 +73,7 @@ in { environment.RAILS_ENV = "production"; environment.SOCKET = mastodon.railsSocket; - path = [ pkgs.bundler ]; + path = [ pkgs.bundler pkgs.file ]; preStart = '' bundle exec rails db:migrate @@ -104,7 +104,7 @@ in { environment.RAILS_ENV="production"; environment.DB_POOL="5"; - path = [ pkgs.bundler ]; + path = [ pkgs.bundler pkgs.file ]; script = '' exec bundle exec sidekiq -c 5 -q default -q mailers -q pull -q push