1
0
Fork 0

Make clearer what nixos.module is

This commit is contained in:
Nicolas Jeannerod 2025-02-27 11:39:07 +01:00
parent ea98ccebfc
commit 07b3cd90d7
Signed by untrusted user: Niols
GPG key ID: 35DB9EC8886E1CB8

View file

@ -80,8 +80,25 @@ in
imports = [
nixops4-nixos.modules.nixops4Resource.nixos
resourceModule
{ nixos.module = config; }
{ nixos.module = fediversity; }
{
## NOTE: With NixOps4, there are several levels and all of them live
## in the NixOS module system:
##
## 1. Each NixOps4 deployment is a module.
## 2. Each NixOps4 resource is a module. This very comment is
## inside an attrset imported as a module in a resource.
## 3. Each NixOps4 'configuration' resource contains an attribute
## 'nixos.module', itself a NixOS configuration module.
nixos.module =
{ ... }:
{
imports = [
config
fediversity
];
};
}
];
};