feat: standardise all services to using `services.skynet."${name}";` format

This commit is contained in:
silver 2024-05-30 14:59:20 +01:00
parent 54b43c9962
commit f8c7860eb5
Signed by: silver
GPG key ID: 54E2C71918E93B74
25 changed files with 64 additions and 48 deletions

View file

@ -6,7 +6,8 @@
...
}:
with lib; let
cfg = config.services.ldap_backend;
name = "ldap_backend";
cfg = config.services.skynet."${name}";
port_backend = "8087";
in {
imports = [
@ -17,7 +18,7 @@ in {
../../config/users.nix
];
options.services.ldap_backend = {
options.services.skynet."${name}" = {
enable = mkEnableOption "Skynet LDAP backend server";
host = {
@ -74,6 +75,7 @@ in {
locations."/".proxyPass = "http://localhost:${port_backend}";
};
# this got imported
services.skynet_ldap_backend = {
enable = true;