forked from Fediversity/Fediversity
Better naming of makeMakeDeployment
arguments
This commit is contained in:
parent
cbed66c934
commit
c66889f58f
2 changed files with 12 additions and 12 deletions
|
@ -20,10 +20,10 @@
|
||||||
##
|
##
|
||||||
## - Ultimately, we just want a pool of VMs, or even just a Proxmox.
|
## - Ultimately, we just want a pool of VMs, or even just a Proxmox.
|
||||||
## - Each machine is flagged for a certain use case until we control DNS.
|
## - Each machine is flagged for a certain use case until we control DNS.
|
||||||
garageResourceModule,
|
garageConfigurationResource,
|
||||||
mastodonResourceModule,
|
mastodonConfigurationResource,
|
||||||
peertubeResourceModule,
|
peertubeConfigurationResource,
|
||||||
pixelfedResourceModule,
|
pixelfedConfigurationResource,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
## From the hosting provider's perspective, the function is meant to be
|
## From the hosting provider's perspective, the function is meant to be
|
||||||
|
@ -90,7 +90,7 @@ in
|
||||||
mkMerge [
|
mkMerge [
|
||||||
|
|
||||||
(mkIf (enableMastodon || enablePeertube || enablePixelfed) {
|
(mkIf (enableMastodon || enablePeertube || enablePixelfed) {
|
||||||
garage-config = makeConfigurationResource garageResourceModule (
|
garage-configuration = makeConfigurationResource garageConfigurationResource (
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
fediversity = {
|
fediversity = {
|
||||||
|
@ -105,7 +105,7 @@ in
|
||||||
})
|
})
|
||||||
|
|
||||||
(mkIf enableMastodon {
|
(mkIf enableMastodon {
|
||||||
mastodon-config = makeConfigurationResource mastodonResourceModule (
|
mastodon-configuration = makeConfigurationResource mastodonConfigurationResource (
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
fediversity = {
|
fediversity = {
|
||||||
|
@ -121,7 +121,7 @@ in
|
||||||
})
|
})
|
||||||
|
|
||||||
(mkIf enablePeertube {
|
(mkIf enablePeertube {
|
||||||
peertube-config = makeConfigurationResource peertubeResourceModule (
|
peertube-configuration = makeConfigurationResource peertubeConfigurationResource (
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
fediversity = {
|
fediversity = {
|
||||||
|
@ -139,7 +139,7 @@ in
|
||||||
})
|
})
|
||||||
|
|
||||||
(mkIf enablePixelfed {
|
(mkIf enablePixelfed {
|
||||||
pixelfed-config = makeConfigurationResource pixelfedResourceModule (
|
pixelfed-configuration = makeConfigurationResource pixelfedConfigurationResource (
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
fediversity = {
|
fediversity = {
|
||||||
|
|
|
@ -60,19 +60,19 @@ let
|
||||||
inherit (self.nixosModules) fediversity;
|
inherit (self.nixosModules) fediversity;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
garageResourceModule = makeResourceModule {
|
garageConfigurationResource = makeResourceModule {
|
||||||
vmName = "test01";
|
vmName = "test01";
|
||||||
isTestVm = true;
|
isTestVm = true;
|
||||||
};
|
};
|
||||||
mastodonResourceModule = makeResourceModule {
|
mastodonConfigurationResource = makeResourceModule {
|
||||||
vmName = "test02";
|
vmName = "test02";
|
||||||
isTestVm = true;
|
isTestVm = true;
|
||||||
};
|
};
|
||||||
peertubeResourceModule = makeResourceModule {
|
peertubeConfigurationResource = makeResourceModule {
|
||||||
vmName = "test03";
|
vmName = "test03";
|
||||||
isTestVm = true;
|
isTestVm = true;
|
||||||
};
|
};
|
||||||
pixelfedResourceModule = makeResourceModule {
|
pixelfedConfigurationResource = makeResourceModule {
|
||||||
vmName = "test04";
|
vmName = "test04";
|
||||||
isTestVm = true;
|
isTestVm = true;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue