]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Fix missing file package for mastodon
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 18 Jan 2019 13:57:10 +0000 (14:57 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 18 Jan 2019 13:57:10 +0000 (14:57 +0100)
virtual/modules/websites/tools/mastodon/default.nix

index 1549ca95f0ac8350908b324b6974b47bda54347a..b2170b50a4856ff4f6ca1c52fe755c73e2d36e09 100644 (file)
@@ -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