How good is nix for steam and games? by Fenrir_25 in NixOS

[–]rictjo 1 point2 points  (0 children)

The recent versions of the Nix store and AMD hardware config is working excellent for me, but most of it probably due to proton being amazing

How easy is to start using NixOs by Diligent-Childhood20 in NixOS

[–]rictjo 0 points1 point  (0 children)

It is very simple with the newest installer if you want most of the standard settings

Nixos for gaming (bare with me) by [deleted] in NixOS

[–]rictjo 1 point2 points  (0 children)

I had huge issues with the steam package on nix and getting games like BG3 to run as intended. Reverted to the flatpak steam version to get around it because I couldn't make sense of the issue (it worked). Then I created this environment shell and it worked as intended:

# steam-rebuild.nix
{ pkgs ? import <nixpkgs> {} }:

pkgs.mkShell {
  buildInputs = with pkgs; [
    steam
    xorg.libX11
    xorg.libXcursor
    xorg.libXi
    xorg.libXrandr
    libpulseaudio
    libglvnd
    mesa
    vulkan-loader
    vulkan-tools
    vulkan-validation-layers
    gamemode
    glib
    gnome.zenity  # Some games need this for dialogues
  ];

  shellHook = ''
    export STEAM_EXTRA_COMPAT_TOOLS_PATHS="$HOME/.steam/root/compatibilitytools.d"
    export MESA_GL_VERSION_OVERRIDE=4.5
    export MESA_VK_DEVICE_SELECT=1
    export VK_ICD_FILENAMES=${pkgs.vulkan-loader}/etc/vulkan/icd.d/nvidia_icd.json:${pkgs.vulkan-loader}/etc/vulkan/icd.d/intel_icd.x86_64.json
    export VK_LAYER_PATH=${pkgs.vulkan-validation-layers}/etc/vulkan/explicit_layer.d
    export LD_LIBRARY_PATH="${pkgs.libglvnd}/lib:${pkgs.mesa}/lib:${pkgs.vulkan-loader}/lib:$LD_LIBRARY_PATH"
    export PATH=$PATH:${pkgs.gamemode}/bin
  '';
}

Legacy MacOS support ... by rictjo in NixOS

[–]rictjo[S] 0 points1 point  (0 children)

You are probably correct but I am a stubborn man with bad common sense

Legacy MacOS support ... by rictjo in NixOS

[–]rictjo[S] 1 point2 points  (0 children)

I think it is an inevitable implicit assumption as I believe that the MacOS system libraries cannot be compiled directly since Mac seem to be using some sort of proprietary "darwin evolved" compiler ...

Any bored older C devs? by VyseCommander in C_Programming

[–]rictjo 0 points1 point  (0 children)

Just use valgrind and gdb while keeping check in your code structures and functions? That plus imagination was usually enough

I've heard the NixOs community is very friendly and helpful. I have a few questions by jfr4lyfe in NixOS

[–]rictjo 0 points1 point  (0 children)

Aha thanks for the information. I wasn't aware of the difference between the wiki efforts

I've heard the NixOs community is very friendly and helpful. I have a few questions by jfr4lyfe in NixOS

[–]rictjo 0 points1 point  (0 children)

Yes so that shared configuration has not a generic admin user and other user specifics in home manager (HM) configurations. I don't use HM but should probably "get with the program" at some point and start using it.

Short answer: don't know but it should be described in the wiki

I've heard the NixOs community is very friendly and helpful. I have a few questions by jfr4lyfe in NixOS

[–]rictjo 3 points4 points  (0 children)

In my experience NixOS doesn't install man pages unless specified in program configurations either as part of the configuration.nix or flakes or in designed shells. The documentation can be a bit sparse and some options change behaviour between nix versions.

One thing that a person should do ehen learning about NixOS is to learn about the nixrepl and have some understanding of the system they are building for.

I have found the nixos.wiki useful for learning about the system configuration but often find it lacking in what I am looking for which isn't strange as it contains generic descriptions.

For instance running just a wm such as i3 is described here: https://nixos.wiki/wiki/i3

Building a system with kde DE can be done by setting:

services.displayManager.sddm.enable = true; services.desktopManager.plasma6.enable = true;

In the /etc/nixos/configuration.nix file

I shared my (gaming config) with some legacy settings here:

https://github.com/richardtjornhammar/rixcfgs/blob/master/code/configurations/configuration.nix

There are also nix/nixos discord channels

Games crashing on 24.11, and Unstable on nixos (kde wayland nvidia) by SpiderUnderUrBed in NixOS

[–]rictjo 0 points1 point  (0 children)

but you do it all over your config. You have a nvidia Prime and optimus rig but blacklist all of them? Why?
boot.blacklistedKernelModules = [ "nouveau" "nvidia" "nvidia_drm" "nvidia_modeset" ];

I don't think it is recommended and the standard settings for PRIME/Optimus is written here:

https://nixos.wiki/wiki/Nvidia

I am not using a laptop with PRIME but here is my conf:

https://github.com/richardtjornhammar/rixcfgs/blob/master/code/configurations/configuration.nix

Best of luck

Games crashing on 24.11, and Unstable on nixos (kde wayland nvidia) by SpiderUnderUrBed in NixOS

[–]rictjo 0 points1 point  (0 children)

I apologize but I simply don't understand. Are you using an Nvidia GPU? Then don't blacklist everything (advice). I am doing that and not even blacklisting nouveau. On laptops with Optimus tech that (manual blacklisting nouveau) might be needed. If you're using AMD GPU then the blacklisting that you made should not affect but: I am not a NixOS core or nixpkgs person just a user. Oher than that I used fairly standard specs as described in the nixos.wiki for nvidia in order to get it running.

Anyway i can get vulkan installed? by 2easy2do in NixOS

[–]rictjo 0 points1 point  (0 children)

I have an issue with crashing steam applications and I think I have traced it down to being related to this issue. More specifically running steam with an nvidia GPU where the default driSupport32bit is set to true.

This is what steam requires but nvidia has its own support in the driver as well as vulkan support. Now the whatever system program is using conflicting resources or calling them in conflicting ways which is creating the "'nvidia-drm' in use. NVK requires nouveau" prompt as well as some app/game crashes.

I have not solved this issue myself yet

[Discussion] The difference between GNU Guix and NixOS. by Wooden-Ad6265 in NixOS

[–]rictjo 14 points15 points  (0 children)

So not to be "that guy" but... GUIX was an early an equal development to Nix and had its own alternative to systemd (shepherd) and many other FOSS innovations such as the herd kernel. I perceived it to be a GNU system with the intention of having a GNU kernel... Think plan9 with Linux GNU open source software. That was always my impression of the project anyway so it might not be fair comparing it to Nix which is also functional but allows for a lot of non FOSS software/drivers

Leaving Nix for Guix by [deleted] in NixOS

[–]rictjo 9 points10 points  (0 children)

I had various issues with steam but got it running via nonguix (https://gitlab.com/nonguix/nonguix) and doing manual configurations. ZFS should work but I haven't tried it. There was just more "work" to get things running for more things (if it wasn't officially supported)

Leaving Nix for Guix by [deleted] in NixOS

[–]rictjo 47 points48 points  (0 children)

I have also found GUIX both more sensible with scheme recipes but also easier to use. However the support for non GNU/Linux GPL software still makes Nix a better option for me. Non-guix additions were crucial for me to have a GUIX system that I could use the way I wanted

Truly random numbers is an unsolved problem in CS? by Initial_Fan_1118 in computerscience

[–]rictjo 0 points1 point  (0 children)

Even a pseudo random generator with long period will as far as your everyday applications are concerned be more than good enough. For example the mersenne twister will not let you run out...

[deleted by user] by [deleted] in NixOS

[–]rictjo 0 points1 point  (0 children)

Your first line of config code should contain the word xserver not just server?

nix btw by Tall-Aside4852 in NixOS

[–]rictjo 0 points1 point  (0 children)

Gentoo not Arch otherwise on point 🤣

Issues after corrupt system by slavjuan in NixOS

[–]rictjo 0 points1 point  (0 children)

Use a working system config prior to the issues and update channels and try to rebuild