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.

    • Darorad@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      21 days ago

      Honestly, they just shouldn’t have added support. GNOMEs been causing problems for basically everyone else for a long time. If they want to do their own thing, that’s fine, but we shouldn’t but everyone else shouldn’t have to do extra work to accommodate them.

  • RustyNova@lemmy.world
    link
    fedilink
    arrow-up
    37
    ·
    22 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
      ·
      22 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.

  • baguettefish@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    15
    ·
    22 days ago

    why not use steam? I know steam has drm and isn’t free as in free speech, but it’s many times more practical. 2.0.8 is out now, and presumably there will be many updates a week for the foreseeable future, and updating by hand or with a script just to get a drm-free version in nixos seems a bit impractical to me.

  • AlligatorBlizzard@sh.itjust.works
    link
    fedilink
    arrow-up
    8
    ·
    22 days ago

    So I’m currently in a full stack bootcamp (I know - it was free for me and I’m learning things even if it’s basically a scam)… why does Factorio have a json file?

    • Object@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      21
      ·
      edit-2
      22 days ago

      You need to package all dynamically linked executables because NixOS disables them by design. It’s to prevent two programs not working because they depend on different versions of a single library. But it’s not helpful when you have a program you need to run, and you need it real soon.

      In terms of whether Factorio runs or not, it does run. You have to add that configuration though.

      Still, if you are familiar with Linux and don’t usually get that “I need a program running ASAP” situations, it is a great OS to learn. I can recommend them.