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
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue