refactor: rename modules to nixosModules

This commit is contained in:
Romain Paquet 2026-01-27 14:36:11 +01:00
parent 2eb4dc3730
commit 7062c95697
24 changed files with 21 additions and 8 deletions

View file

@ -0,0 +1,28 @@
{ lib, ... }:
{
flake.nixosModules =
(
(builtins.readDir ./.)
|> lib.filterAttrs (path: type: type == "regular" && (lib.hasSuffix ".nix" path))
|> lib.mapAttrs' (
path: _: {
name = lib.removeSuffix ".nix" path;
value = {
imports = [ ./${path} ];
};
}
)
)
// {
server.imports = [
./motd.nix
];
common.imports = [
{
users.mutableUsers = lib.mkDefault false;
services.userborn.enable = lib.mkDefault true;
}
];
};
}