mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
adf04a9393
Flake outputs, hosts, users, and formatting of Nix files. et cetera, et cetera. |
||
---|---|---|
.. | ||
home-manager | ||
nixos | ||
README.adoc |
Table of Contents
This directory contains modules for different components such as NixOS modules and home-manager modules.
Importing the modules
Usually, you’ll see no default.nix
in place since it is imported through other means.
One of the most common way is through filesToAttr
defined in my custom library.
For example, to easily get a list of imported custom NixOS modules, here’s one way with the custom library.
lib.map (path: import path) (lib.modulesToList (lib.filesToAttr ./modules/nixos))
Each modules may have to be imported differently.
Please see the respective documentation (i.e., man:configuration.nix(5)
, man:home-configuration.nix
) for more details.