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,8 +6,9 @@
...
}:
with lib; let
cfg = config.services.skynet_users;
php_pool = "skynet_users";
name = "website_users";
cfg = config.services.skynet."${name}";
php_pool = name;
in {
imports = [
./acme.nix
@ -15,7 +16,7 @@ in {
./nginx.nix
];
options.services.skynet_users = {
options.services.skynet."${name}" = {
host = {
ip = mkOption {
type = types.str;
@ -30,7 +31,7 @@ in {
# ssh access
# allow more than admins access
services.skynet_ldap_client = {
services.skynet.ldap_client = {
groups = [
"skynet-admins-linux"
"skynet-users-linux"