aleeusgr / nix-things

a toolbox
1 stars 0 forks source link

NixOS Modules #14

Closed aleeusgr closed 1 year ago

aleeusgr commented 1 year ago

https://nixos.wiki/wiki/NixOS_modules

aleeusgr commented 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:

  1. add package to nixpkgs. Is there cardano-node in nixpkgs? Nope!

What I need to do: from a forum post I got a headsup that second way of adding package to personal configuration works.