NixOS modules: Difference between revisions
imported>Makefu clarification of require |
imported>Chanbakjsd Update line numbers of links to GitHub |
||
Line 77: | Line 77: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
They are created with {{ic|mkOption}}, a function accepting a set with following attributes:<ref>{{Nixpkgs Link|lib/options.nix# | They are created with {{ic|mkOption}}, a function accepting a set with following attributes:<ref>{{Nixpkgs Link|lib/options.nix#L51-L84}}</ref><ref>{{manual:nixos|sec=#sec-option-declarations|chapter=42.1. Option Declarations}}</ref> | ||
<dl> | <dl> | ||
Line 265: | Line 265: | ||
* https://github.com/nixcloud/nixcloud-webservices/blob/master/modules/services/reverse-proxy/options.nix | * https://github.com/nixcloud/nixcloud-webservices/blob/master/modules/services/reverse-proxy/options.nix | ||
* https://github.com/nixcloud/nixcloud-webservices/blob/master/modules/services/TLS/default.nix | * https://github.com/nixcloud/nixcloud-webservices/blob/master/modules/services/TLS/default.nix | ||
* https://github.com/nixcloud/nixcloud-webservices/blob/master/modules/services/email/nixcloud-email.nix# | * https://github.com/nixcloud/nixcloud-webservices/blob/master/modules/services/email/nixcloud-email.nix#L114 | ||
(sorry, dont' have more time to make this into a nice little guide yet, but this links should be pretty good introductions into more advanced module system usages) qknight | (sorry, dont' have more time to make this into a nice little guide yet, but this links should be pretty good introductions into more advanced module system usages) qknight |