anchor.diff:        { name = "redmine";
           group = cfg.group;
           home = cfg.stateDir;
  -        createHome = true;
           uid = config.ids.uids.redmine;
         });
   
  
positive.code: 
  
          # link in all user specified plugins
          rm -rf "${cfg.stateDir}/plugins/"*
          for plugin in ${concatStringsSep " " (mapAttrsToList unpackPlugin cfg.plugins)}; do
            ln -fs $plugin/* "${cfg.stateDir}/plugins/''${plugin##*-redmine-plugin-}"
          done
  
  
          # ensure correct permissions for most files
          chmod -R ug+rwX,o-rwx+x "${cfg.stateDir}/"
  
  
          # handle database.passwordFile & permissions
  
negative.code:           chmod 440 "${cfg.stateDir}/config/initializers/secret_token.rb"
          fi
  
          # execute redmine required commands prior to starting the application
          ${bundle} exec rake db:migrate
          ${bundle} exec rake redmine:plugins:migrate
          ${bundle} exec rake redmine:load_default_data
        '';
  
        serviceConfig = {
          Type = "simple";
          User = cfg.user;
          Group = cfg.group;
  