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,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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue