feat: standardise all services to using `services.skynet."${name}";
` format
This commit is contained in:
parent
54b43c9962
commit
f8c7860eb5
25 changed files with 64 additions and 48 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue