Closed aleeusgr closed 1 year ago
https://nixos.org/nixos https://nixos.wiki/wiki/NixOS_modules https://nixos.org/manual/nixos/stable/index.html#sec-writing-modules
OK, I found it.
Any .nix file in /etc/nixos is read by nixos-rebuild
A module contains a Nix expression. It declares options for other modules to define (give a value). It processes them and defines options declared in other modules. Each NixOS module is a file that handles one logical aspect of the configuration, such as a specific kind of hardware, a service, or network settings.
So what I need to do can be solved in two ways:
What I need to do: from a forum post I got a headsup that second way of adding package to personal configuration works.
https://nixos.wiki/wiki/NixOS_modules