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, ... }:
|
||||
{
|
||||
fediversity = {
|
||||
enable = true;
|
||||
domain = "fedi101.abundos.eu";
|
||||
pixelfed = {
|
||||
enable = true;
|
||||
|
@ -97,7 +96,6 @@ in
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
fediversity = {
|
||||
enable = true;
|
||||
domain = "fedi102.abundos.eu";
|
||||
mastodon = {
|
||||
enable = true;
|
||||
|
@ -116,7 +114,6 @@ in
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
fediversity = {
|
||||
enable = true;
|
||||
domain = "fedi103.abundos.eu";
|
||||
peertube = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkOption mkEnableOption mkForce;
|
||||
inherit (lib) mkOption;
|
||||
inherit (lib.types) types;
|
||||
|
||||
in
|
||||
|
@ -15,8 +15,6 @@ in
|
|||
|
||||
options = {
|
||||
fediversity = {
|
||||
enable = mkEnableOption "the collection of services bundled under Fediversity";
|
||||
|
||||
domain = mkOption {
|
||||
type = types.str;
|
||||
description = ''
|
||||
|
@ -50,10 +48,5 @@ in
|
|||
defaults.email = "nicolas.jeannerod+fediversity@moduscreate.com";
|
||||
# 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 ];
|
||||
|
||||
config = lib.mkIf config.fediversity.enable {
|
||||
config = {
|
||||
environment.systemPackages = [
|
||||
pkgs.minio-client
|
||||
pkgs.awscli
|
||||
|
|
|
@ -13,7 +13,7 @@ in
|
|||
{
|
||||
imports = [ ./options.nix ];
|
||||
|
||||
config = lib.mkIf (config.fediversity.enable && config.fediversity.mastodon.enable) {
|
||||
config = lib.mkIf config.fediversity.mastodon.enable {
|
||||
#### garage setup
|
||||
fediversity.garage = {
|
||||
ensureBuckets = {
|
||||
|
|
|
@ -7,7 +7,7 @@ in
|
|||
{
|
||||
imports = [ ./options.nix ];
|
||||
|
||||
config = mkIf (config.fediversity.enable && config.fediversity.peertube.enable) {
|
||||
config = mkIf config.fediversity.peertube.enable {
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
80
|
||||
443
|
||||
|
|
|
@ -12,7 +12,7 @@ in
|
|||
{
|
||||
imports = [ ./options.nix ];
|
||||
|
||||
config = mkIf (config.fediversity.enable && config.fediversity.pixelfed.enable) {
|
||||
config = mkIf config.fediversity.pixelfed.enable {
|
||||
fediversity.garage = {
|
||||
ensureBuckets = {
|
||||
pixelfed = {
|
||||
|
|
Loading…
Add table
Reference in a new issue