Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos/factorio: disable builting mods introduced with Factorio Space Age #392183

Open
3 tasks done
no-mood opened this issue Mar 22, 2025 · 3 comments
Open
3 tasks done

nixos/factorio: disable builting mods introduced with Factorio Space Age #392183

no-mood opened this issue Mar 22, 2025 · 3 comments
Labels
0.kind: bug Something is broken 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS

Comments

@no-mood
Copy link

no-mood commented Mar 22, 2025

Nixpkgs version

  • Unstable (25.05)

Describe the bug

The Factorio module currently installs built-in mods (like Space Age) even when they are not explicitly specified. This results in players being unable to join servers if they do not own these mods, which is not the intended behavior.

I am creating this issue to make life easier for those who encounter this problem.
There is already a potential fix in progress (#388285), but I am opening this issue regardless to document the problem and track its resolution.

Let me know if more information or testing is needed.

Steps to reproduce

  1. Set up a Factorio server using the NixOS module without specifying any mods:
{
  services.factorio = {
    enable = true;
    openFirewall = true;
  };
}
  1. Start the server
  2. Try to join the server from a client without built-in mods like Space Age.

Expected behaviour

The server should not automatically include built-in mods that are not explicitly listed in the configuration. Clients without these mods should be able to connect without issues.

Screenshots

No response

Relevant log output

Additional context

No response

System metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 6.13.7, NixOS, 25.05 (Warbler), 25.05.20250319.a84ebe2`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.12`
 - nixpkgs: `/nix/store/1728d3jg85mkz2w2cvk6vi74i30fn6x7-source`

Notify maintainers


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

@no-mood no-mood added 0.kind: bug Something is broken 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS labels Mar 22, 2025
@hustlerone
Copy link
Contributor

hustlerone commented Mar 23, 2025

This might just be a config issue.

Try adding this to factorio.json:

    "mods": 
    [
      
      {
        "name": "base",
        "enabled": true
      },
      
      {
        "name": "elevated-rails",
        "enabled": false
      },
      
      {
        "name": "quality",
        "enabled": false
      },
      
      {
        "name": "space-age",
        "enabled": false
      }
    ]

@no-mood
Copy link
Author

no-mood commented Mar 23, 2025

This might just be a config issue.

Try adding this to factorio.json:

    "mods": 
    [
      
      {
        "name": "base",
        "enabled": true
      },
      
      {
        "name": "elevated-rails",
        "enabled": false
      },
      
      {
        "name": "quality",
        "enabled": false
      },
      
      {
        "name": "space-age",
        "enabled": false
      }
    ]

You mean mod-list.json? Or this in the nix config?

@hustlerone
Copy link
Contributor

hustlerone commented Mar 24, 2025

This might just be a config issue.
Try adding this to factorio.json:

    "mods": 
    [
      
      {
        "name": "base",
        "enabled": true
      },
      
      {
        "name": "elevated-rails",
        "enabled": false
      },
      
      {
        "name": "quality",
        "enabled": false
      },
      
      {
        "name": "space-age",
        "enabled": false
      }
    ]

You mean mod-list.json? Or this in the nix config?

Yes, in the config. Specifically in extraSettingsFile (less nix-y), or an equivalent in Nix syntax in the extraSettings attrset. The DLC are technically mods but built-in.

If you're actually using mods it might make sense to use the extraSettings attrset since it'll all get merged cleanly.

Here's the options for factorio the service: https://search.nixos.org/options?channel=unstable&show=services.factorio.extraSettings&from=0&size=50&sort=relevance&type=packages&query=factorio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Projects
None yet
Development

No branches or pull requests

2 participants