forked from Fediversity/Fediversity
some patches to return to my main foe of download failures
This commit is contained in:
parent
21c4cab1e0
commit
23393f4cef
3 changed files with 17 additions and 22 deletions
|
@ -23,11 +23,24 @@ testers.runNixOSTest (
|
|||
|
||||
fakeMachine = pkgs.nixos [
|
||||
../basic/minimalTarget.nix
|
||||
../../../launch/options.nix
|
||||
../../../launch/shared.nix
|
||||
../../../launch/garage.nix
|
||||
../../../launch/mastodon.nix
|
||||
../../../launch/pixelfed.nix
|
||||
../../../launch/peertube.nix
|
||||
{
|
||||
terraform = {
|
||||
domain = "fediversity.net";
|
||||
hostname = "base";
|
||||
initialUser = {
|
||||
displayName = "Testy McTestface";
|
||||
username = "test";
|
||||
email = "test@test.com";
|
||||
password = "testtest";
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
extraDependenciesFromMachine =
|
||||
|
|
|
@ -18,25 +18,6 @@ in
|
|||
## REVIEW: Do we actually need that, considering that we have static IPs?
|
||||
useDHCP = mkDefault true;
|
||||
|
||||
interfaces = {
|
||||
eth0 = {
|
||||
ipv4 = {
|
||||
addresses = [
|
||||
{
|
||||
inherit (config.fediversityVm.ipv4) address prefixLength;
|
||||
}
|
||||
];
|
||||
};
|
||||
ipv6 = {
|
||||
addresses = [
|
||||
{
|
||||
inherit (config.fediversityVm.ipv6) address prefixLength;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
defaultGateway = lib.mkIf (config.fediversityVm ? ipv4) {
|
||||
address = config.fediversityVm.ipv4.gateway;
|
||||
interface = "eth0";
|
||||
|
|
|
@ -59,9 +59,10 @@ in
|
|||
## NOTE: Pixelfed as packaged in nixpkgs has a permission issue that prevents Nginx
|
||||
## from being able to serving the images. We fix it here, but this should be
|
||||
## upstreamed. See https://github.com/NixOS/nixpkgs/issues/235147
|
||||
services.pixelfed.package = pkgs.pixelfed.overrideAttrs (old: {
|
||||
patches = (old.patches or [ ]) ++ [ ./group-permissions.patch ];
|
||||
});
|
||||
# patching failed
|
||||
# services.pixelfed.package = pkgs.pixelfed.overrideAttrs (old: {
|
||||
# patches = (old.patches or [ ]) ++ [ ./group-permissions.patch ];
|
||||
# });
|
||||
users.users.nginx.extraGroups = [ "pixelfed" ];
|
||||
|
||||
services.pixelfed = {
|
||||
|
|
Loading…
Add table
Reference in a new issue