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

@ -5,7 +5,8 @@
...
}:
with lib; let
cfg = config.services.skynet_nextcloud;
name = "nextcloud";
cfg = config.services.skynet."${name}";
domain = "${cfg.domain.sub}.${cfg.domain.base}.${cfg.domain.tld}";
in {
imports = [
@ -14,7 +15,7 @@ in {
./nginx.nix
];
options.services.skynet_nextcloud = {
options.services.skynet."${name}" = {
enable = mkEnableOption "Skynet Nextcloud";
host = {
@ -40,7 +41,7 @@ in {
sub = mkOption {
type = types.str;
default = "nextcloud";
default = name;
};
};
};