-{ lib, pkgs, config, myconfig, mylibs, ... }:
+{ lib, pkgs, pkgsPrevious, config, myconfig, mylibs, ... }:
let
- mastodon = pkgs.callPackage ./mastodon.nix {
+ mastodon = pkgsPrevious.callPackage ./mastodon.nix {
inherit (mylibs) fetchedGithub;
env = myconfig.env.tools.mastodon;
};
uid = config.ids.uids.mastodon;
group = "mastodon";
description = "Mastodon user";
- home = mastodon.railsRoot;
+ home = mastodon.varDir;
useDefaultShell = true;
};
after = [ "network.target" ];
environment.RAILS_ENV = "production";
- environment.BUNDLE_PATH = "${mastodon.gems}/lib/ruby/gems/2.5.0";
+ environment.BUNDLE_PATH = "${mastodon.gems}/${mastodon.gems.ruby.gemPath}";
environment.BUNDLE_GEMFILE = "${mastodon.gems.confFiles}/Gemfile";
environment.SOCKET = mastodon.railsSocket;