changed things with factorio server, but i am still not happy

This commit is contained in:
Ranomier 2025-01-23 04:50:10 +01:00
parent 57b75b58d7
commit d05d62a5a0
3 changed files with 28 additions and 49 deletions

View file

@ -100,7 +100,7 @@
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
# you can include your own nixos configuration here, i.e. # you can include your own nixos configuration here, i.e.
#./hosts/factorio/factorio.nix ./hosts/factorio/factorio.nix
]; ];
customFormats = { customFormats = {

View file

@ -1,6 +1,6 @@
{...}: { {...}: {
# Use the GRUB 2 boot loader. # Use the GRUB 2 boot loader.
boot.loader.grub.enable = true; #boot.loader.grub.enable = true;
# Define on which hard drive you want to install Grub. # Define on which hard drive you want to install Grub.
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only #boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
} }

View file

@ -1,7 +1,7 @@
{ { pkgs
pkgs, , lib
lib, , modulesPath
... , ...
}: { }: {
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
@ -9,62 +9,39 @@
# this value at the release version of the first install of this system. # this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option # Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment? system.stateVersion = "24.11"; # Did you read the comment?
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
nixpkgs = { nixpkgs.config = {
# You can add overlays here
#overlays = with inputs.self.overlays; [
# Add overlays your own flake exports (from overlays and pkgs dir):
#additions
#modifications
#unstable-packages
# You can also add overlays exported from other flakes:
# neovim-nightly-overlay.overlays.default
# Or define it inline, for example:
# (final: prev: {
# hi = final.hello.overrideAttrs (oldAttrs: {
# patches = [ ./change-hello-to-hi.patch ];
# });
# })
#];
# Configure your nixpkgs instance
config = {
# Disable if you don't want unfree packages # Disable if you don't want unfree packages
allowUnfree = true; allowUnfree = true;
};
}; };
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.experimental-features = ["nix-command" "flakes"];
# https://lix.systems/ Lix is a modern, delicious implementation of the Nix package manager, # https://lix.systems/ Lix is a modern, delicious implementation of the Nix package manager,
# focused on correctness, usability, and growth # focused on correctness, usability, and growth
# and committed to doing right by its community. # and committed to doing right by its community.
#nix.package = pkgs.lix; nix.package = pkgs.lix;
imports = [ imports = [
#nixos-hardware.nixosModules.lenovo-thinkpad-t14-amd-gen1 #nixos-hardware.nixosModules.lenovo-thinkpad-t14-amd-gen1
#./hardware-configuration.nix #./hardware-configuration.nix
./boot.nix #./boot.nix
./hardware-configuration.nix #./hardware-configuration.nix
../../modules/locale.nix ../../modules/locale.nix
#../../modules/game/server/factorio/factorio.nix #../../modules/game/server/factorio/factorio.nix
#<nixpkgs/nixos/modules/profiles/perlless.nix> (modulesPath + "/profiles/perlless.nix")
#<nixpkgs/nixos/modules/profiles/headless.nix> (modulesPath + "/profiles/minimal.nix")
#<nixpkgs/nixos/modules/profiles/minimal.nix>
{ {
programs.command-not-found.enable = false; environment.defaultPackages = [ ];
environment.defaultPackages = []; boot.kernel.enable = false;
xdg = { boot.isContainer = true;
icons.enable = false; nixpkgs.overlays = [ (self: super: {}) ];
mime.enable = false; }
sounds.enable = false; {
};
documentation.man.enable = false;
documentation.nixos.enable = false;
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's # (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction # still possible to use this option, but it's recommended to use it in conjunction
@ -73,8 +50,10 @@
# networking.interfaces.ens18.useDHCP = lib.mkDefault true; # networking.interfaces.ens18.useDHCP = lib.mkDefault true;
} }
]; ];
#disabledModules = [ disabledModules = [
(modulesPath + "/profiles/all-hardware.nix")
(modulesPath + "/profiles/base.nix")
# <nixpkgs/nixos/modules/profiles/all-hardware.nix> # <nixpkgs/nixos/modules/profiles/all-hardware.nix>
# <nixpkgs/nixos/modules/profiles/base.nix> # <nixpkgs/nixos/modules/profiles/base.nix>
#]; ];
} }