nixos-config/modules
Gabriel Arazas adf04a9393 Update various configurations
Flake outputs, hosts, users, and formatting of Nix files. et cetera, et
cetera.
2021-12-11 13:37:27 +08:00
..
home-manager Add modules 2021-12-11 13:31:28 +08:00
nixos Add modules 2021-12-11 13:31:28 +08:00
README.adoc Update various configurations 2021-12-11 13:37:27 +08:00

Table of Contents

This directory contains modules for different components such as NixOS modules and home-manager modules.

Importing the modules

Usually, youll 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, heres 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.