Add this to your home-manager

    let
      f = pkgs.factorio.override {
        username = "<Your Username>";
        token = "<Token>";
        versionsJson = ./factorio.json;
      };
    in
    {
      home-manager.users."<Your Username>".home.packages = [ f ];
    };

In factorio.json

{
  "x86_64-linux": {
    "alpha": {
      "stable": {
        "name": "factorio-space-age_linux_2.0.7.tar.xz",
        "needsAuth": true,
        "sha256": "1zvk1skkm37kyikq4l1q285l8zhxc6lqvs1x2y2ccxwd4cdm6r96",
        "tarDirectory": "x64",
        "url": "https://factorio.com/get-download/2.0.7/expansion/linux64",
        "version": "2.0.7"
      }
    }
  }
}

To get your Factorio working.

  • RustyNova@lemmy.world
    link
    fedilink
    arrow-up
    39
    ·
    27 days ago

    I tried nix because it seemed cool, but dipped fast due to things like this. Definitely not a desktop distro (at least for me)

    • Johanno@feddit.org
      link
      fedilink
      arrow-up
      16
      ·
      27 days ago

      I mean you are completely right. But I mean do you know people who have fun dying in dark souls?

      Because you can make it in nixos you just have to be a masochist.