X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=virtual%2Fmodules%2Fwebsites%2Ftools%2Fmastodon%2Fdefault.nix;h=b2170b50a4856ff4f6ca1c52fe755c73e2d36e09;hb=21b095c7a2fc75e8ec991c963e9079071c7d8e28;hp=1549ca95f0ac8350908b324b6974b47bda54347a;hpb=56eba41617f405624330aa755fcbfc0af68cf64f;p=perso%2FImmae%2FConfig%2FNix.git 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