Fixing factorio

This commit is contained in:
Lyes Saadi 2025-11-16 15:35:37 +01:00
parent 3f7aa7c2e3
commit 39b51f1ecd
Signed by: lyes
GPG key ID: 55A1D803917CF39A
6 changed files with 41 additions and 20 deletions

View file

@ -1,4 +1,4 @@
{ nixpkgs-unstable, nixpkgs-stable, ... }:
{ nixpkgs-unstable, nixpkgs-stable, pin-factorio, ... }:
{
imports =
@ -13,13 +13,6 @@
local = import ../../pkgs { pkgs = final; };
})
# # Stable
# (final: prev: {
# stable = import nixpkgs-stable {
# system = prev.system;
# };
# })
# Unstable
(final: prev: {
unstable = import nixpkgs-unstable {
@ -33,6 +26,13 @@
system = prev.system;
};
})
# Pins
(final: prev: {
pin = {
factorio = import pin-factorio { system = prev.system; };
};
})
];
nixpkgs.config = {

View file

@ -1,8 +1,9 @@
{ config, ... }:
{ config, pkgs, ... }:
{
services.factorio = {
enable = true;
package = pkgs.pin.factorio-headless;
openFirewall = true;
extraSettingsFile = config.age.secrets.kalif-conf.path;
game-name = "Factorio :3 - Kalif - Zora";