#NixOS Update: I've got nearly anything set up. Now I am trying to get #StarCitizen running again. The lug-helper is not usable, because NixOS cannot run "normal" executables. I will now try the flatpak variant and hope it will work.

I still not understand, what the difference between the configuration.nix and flakes is. Are flakes simply module loader? And why are so many NixOS users using Home Manager? What is special about it?

#linux #gaming #linuxgaming

@liamthexpl0rer I wrote a bit about this, but may not be the best source 😀

https://tty.is/blog/

and yeah, I haven't written much 😔

vt52's blog

@vt52 Nice! :P
So for my understanding I can use the configuration.nix only for system configuration and flakes for package installation & configuration right?

Do I have also the ability to split the flake.nix into multiple files?

Example:
- flake.nix
- hosts
- hostname1
- configuration.nix
- hardware-configuration.nix
- modules
- flatpak.nix
- star-citizen.nix

@liamthexpl0rer

> I can use the configuration.nix only for system configuration and flakes for package installation & configuration right?

A flake is a container, it can't really "do things" by itself. If you want to define packages to be installed, or configure things, that must still go inside a `nixosConfigurations` (or `homeConfigurations` etc.) inside your flake.

> Do I have also the ability to split the flake.nix into multiple files?

Yes! Nix supports splitting your code into multiple files, whether using flakes or not. You can import Nix code using import [1], or when talking NixOS configuration, it has its own module mechanism via "imports" [2].

[1]: https://nix.dev/tutorials/nix-language.html#import
[2]: https://nixos.org/manual/nixos/stable/#sec-modularity

Nix language basics — nix.dev documentation