system-manager/nix/modules/upstream/nixpkgs/default.nix
2024-09-30 11:59:31 +02:00

31 lines
689 B
Nix

{
nixosModulesPath,
lib,
...
}:
{
imports =
[
./nginx.nix
]
++
# List of imported NixOS modules
# TODO: how will we manage this in the long term?
map (path: nixosModulesPath + path) [
"/misc/meta.nix"
"/security/acme/"
"/services/web-servers/nginx/"
];
options =
# We need to ignore a bunch of options that are used in NixOS modules but
# that don't apply to system-manager configs.
# TODO: can we print an informational message for things like kernel modules
# to inform users that they need to be enabled in the host system?
{
boot = lib.mkOption {
type = lib.types.raw;
};
};
}