forked from Fediversity/Fediversity
Get rid of fediversity.enable
This commit is contained in:
parent
78a85b27ff
commit
a5d226ed22
6 changed files with 5 additions and 15 deletions
|
@ -80,7 +80,6 @@ in
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
fediversity = {
|
fediversity = {
|
||||||
enable = true;
|
|
||||||
domain = "fedi101.abundos.eu";
|
domain = "fedi101.abundos.eu";
|
||||||
pixelfed = {
|
pixelfed = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -97,7 +96,6 @@ in
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
fediversity = {
|
fediversity = {
|
||||||
enable = true;
|
|
||||||
domain = "fedi102.abundos.eu";
|
domain = "fedi102.abundos.eu";
|
||||||
mastodon = {
|
mastodon = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -116,7 +114,6 @@ in
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
fediversity = {
|
fediversity = {
|
||||||
enable = true;
|
|
||||||
domain = "fedi103.abundos.eu";
|
domain = "fedi103.abundos.eu";
|
||||||
peertube = {
|
peertube = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) mkOption mkEnableOption mkForce;
|
inherit (lib) mkOption;
|
||||||
inherit (lib.types) types;
|
inherit (lib.types) types;
|
||||||
|
|
||||||
in
|
in
|
||||||
|
@ -15,8 +15,6 @@ in
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
fediversity = {
|
fediversity = {
|
||||||
enable = mkEnableOption "the collection of services bundled under Fediversity";
|
|
||||||
|
|
||||||
domain = mkOption {
|
domain = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
|
@ -50,10 +48,5 @@ in
|
||||||
defaults.email = "nicolas.jeannerod+fediversity@moduscreate.com";
|
defaults.email = "nicolas.jeannerod+fediversity@moduscreate.com";
|
||||||
# defaults.server = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
# defaults.server = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
||||||
};
|
};
|
||||||
|
|
||||||
## NOTE: For a one-machine deployment, this removes the need to provide an
|
|
||||||
## `s3.garage.<domain>` domain. However, this will quickly stop working once
|
|
||||||
## we go to multi-machines deployment.
|
|
||||||
fediversity.garage.api.domain = mkForce "s3.garage.localhost";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,7 +99,7 @@ in
|
||||||
{
|
{
|
||||||
imports = [ ./options.nix ];
|
imports = [ ./options.nix ];
|
||||||
|
|
||||||
config = lib.mkIf config.fediversity.enable {
|
config = {
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgs.minio-client
|
pkgs.minio-client
|
||||||
pkgs.awscli
|
pkgs.awscli
|
||||||
|
|
|
@ -13,7 +13,7 @@ in
|
||||||
{
|
{
|
||||||
imports = [ ./options.nix ];
|
imports = [ ./options.nix ];
|
||||||
|
|
||||||
config = lib.mkIf (config.fediversity.enable && config.fediversity.mastodon.enable) {
|
config = lib.mkIf config.fediversity.mastodon.enable {
|
||||||
#### garage setup
|
#### garage setup
|
||||||
fediversity.garage = {
|
fediversity.garage = {
|
||||||
ensureBuckets = {
|
ensureBuckets = {
|
||||||
|
|
|
@ -7,7 +7,7 @@ in
|
||||||
{
|
{
|
||||||
imports = [ ./options.nix ];
|
imports = [ ./options.nix ];
|
||||||
|
|
||||||
config = mkIf (config.fediversity.enable && config.fediversity.peertube.enable) {
|
config = mkIf config.fediversity.peertube.enable {
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
80
|
80
|
||||||
443
|
443
|
||||||
|
|
|
@ -12,7 +12,7 @@ in
|
||||||
{
|
{
|
||||||
imports = [ ./options.nix ];
|
imports = [ ./options.nix ];
|
||||||
|
|
||||||
config = mkIf (config.fediversity.enable && config.fediversity.pixelfed.enable) {
|
config = mkIf config.fediversity.pixelfed.enable {
|
||||||
fediversity.garage = {
|
fediversity.garage = {
|
||||||
ensureBuckets = {
|
ensureBuckets = {
|
||||||
pixelfed = {
|
pixelfed = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue