forked from Fediversity/Fediversity
mar
This commit is contained in:
parent
913d513718
commit
1f01f088d8
1 changed files with 39 additions and 30 deletions
|
@ -11,7 +11,7 @@ testers.runNixOSTest (
|
|||
let
|
||||
sources = import ../../../npins;
|
||||
pkgs = hostPkgs;
|
||||
dummyFile = hostPkgs.writeText "dummy" "";
|
||||
# dummyFile = hostPkgs.writeText "dummy" "";
|
||||
tf = pkgs.callPackage ../../../launch/tf.nix { };
|
||||
tfEnv = pkgs.callPackage ../../../launch/tf-env.nix { };
|
||||
inherit (pkgs) lib;
|
||||
|
@ -112,36 +112,45 @@ testers.runNixOSTest (
|
|||
fake = {
|
||||
imports = [
|
||||
../basic/minimalTarget.nix
|
||||
../../../services/fediversity
|
||||
];
|
||||
fediversity = {
|
||||
domain = "dummy";
|
||||
garage.enable = true;
|
||||
mastodon = {
|
||||
enable = true;
|
||||
s3AccessKeyFile = dummyFile;
|
||||
s3SecretKeyFile = dummyFile;
|
||||
};
|
||||
peertube = {
|
||||
enable = true;
|
||||
secretsFile = dummyFile;
|
||||
s3AccessKeyFile = dummyFile;
|
||||
s3SecretKeyFile = dummyFile;
|
||||
};
|
||||
# pixelfed = {
|
||||
# enable = true;
|
||||
# s3AccessKeyFile = dummyFile;
|
||||
# s3SecretKeyFile = dummyFile;
|
||||
# };
|
||||
temp.cores = 1;
|
||||
temp.initialUser = {
|
||||
username = "dummy";
|
||||
displayName = "dummy";
|
||||
email = "dummy";
|
||||
passwordFile = dummyFile;
|
||||
};
|
||||
};
|
||||
|
||||
## NOTE: Cannot use ../../../launch/shared.nix because it involves
|
||||
## <disko/module.nix> and <agenix/modules/age.nix>.
|
||||
(
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
hostname = "dummy";
|
||||
domain = "dummy";
|
||||
initialUser = {
|
||||
username = "dummy";
|
||||
email = "dummy";
|
||||
displayName = "dummy";
|
||||
};
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
# <disko/module.nix>
|
||||
# <agenix/modules/age.nix>
|
||||
../../../services/fediversity
|
||||
../../../launch/resource.nix
|
||||
];
|
||||
fediversityVm.name = hostname;
|
||||
fediversity = {
|
||||
inherit domain;
|
||||
temp.initialUser = {
|
||||
inherit (initialUser) username email displayName;
|
||||
# FIXME: disgusting, but nvm, this is going to be replaced by
|
||||
# proper central authentication at some point
|
||||
passwordFile = pkgs.writeText "password" initialUser.password;
|
||||
};
|
||||
};
|
||||
}
|
||||
)
|
||||
|
||||
../../../launch/garage.nix
|
||||
../../../launch/mastodon.nix
|
||||
../../../launch/pixelfed.nix
|
||||
../../../launch/peertube.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
// lib.genAttrs targetMachines (_: {
|
||||
|
|
Loading…
Add table
Reference in a new issue