refactor: rename modules to nixosModules
This commit is contained in:
parent
2eb4dc3730
commit
7062c95697
24 changed files with 21 additions and 8 deletions
|
|
@ -1,28 +0,0 @@
|
|||
{ 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;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue