Something went wrong. Try again.
Shared nix modules for my configurations.
Something went wrong. Try again.
Files
- Nix 98%
- CSS 2%
- Shell <1%
README.md
nix-modules #
Generic, secret-free den aspects for NixOS, nix-darwin and home-manager,
exported as the ilx namespace. One aspect per file in modules/ilx/aspects/.
inputs.nix-modules = {
url = "git+https://tangled.org/ilak.ch/nix-modules?ref=main";
# Without this, two den revisions evaluate the aspects and shared ones are emitted twice.
inputs.den.follows = "den";
};
imports = [ (inputs.den.namespace "ilx" [ inputs.nix-modules ]) ];
den.aspects.myhost.includes = [ ilx.server-base ilx.monitoring ];
Contract with the consumer:
inframodule arg — the fleet registry (network.ipMap,network.gatewayMap,network.vlan,services.<name>.port, …). Inject it per class, e.g.den.default.nixos._module.args.infra = …. Aspects read the keys they need directly.- Host entity attrs —
host.name,host.interface,host.user,host.homeDir. - Quirks (
homebrew-cask,homebrew-mas) must be declared asden.quirks.<name>by the consumer; den namespaces forward aspects and classes, not quirks.
flake.nix is generated by flake-file from modules/dendritic.nix: nix run .#write-flake.
Revisions before a2fb8af are the pre-den homeManagerModules / nixosModules / infra.* API.