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 [
|
fakeMachine = pkgs.nixos [
|
||||||
../basic/minimalTarget.nix
|
../basic/minimalTarget.nix
|
||||||
|
../../../launch/options.nix
|
||||||
../../../launch/shared.nix
|
../../../launch/shared.nix
|
||||||
../../../launch/garage.nix
|
../../../launch/garage.nix
|
||||||
../../../launch/mastodon.nix
|
../../../launch/mastodon.nix
|
||||||
../../../launch/pixelfed.nix
|
../../../launch/pixelfed.nix
|
||||||
../../../launch/peertube.nix
|
../../../launch/peertube.nix
|
||||||
|
{
|
||||||
|
terraform = {
|
||||||
|
domain = "fediversity.net";
|
||||||
|
hostname = "base";
|
||||||
|
initialUser = {
|
||||||
|
displayName = "Testy McTestface";
|
||||||
|
username = "test";
|
||||||
|
email = "test@test.com";
|
||||||
|
password = "testtest";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
extraDependenciesFromMachine =
|
extraDependenciesFromMachine =
|
||||||
|
|
|
||||||
|
|
@ -18,25 +18,6 @@ in
|
||||||
## REVIEW: Do we actually need that, considering that we have static IPs?
|
## REVIEW: Do we actually need that, considering that we have static IPs?
|
||||||
useDHCP = mkDefault true;
|
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) {
|
defaultGateway = lib.mkIf (config.fediversityVm ? ipv4) {
|
||||||
address = config.fediversityVm.ipv4.gateway;
|
address = config.fediversityVm.ipv4.gateway;
|
||||||
interface = "eth0";
|
interface = "eth0";
|
||||||
|
|
|
||||||
|
|
@ -59,9 +59,10 @@ in
|
||||||
## NOTE: Pixelfed as packaged in nixpkgs has a permission issue that prevents Nginx
|
## 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
|
## from being able to serving the images. We fix it here, but this should be
|
||||||
## upstreamed. See https://github.com/NixOS/nixpkgs/issues/235147
|
## upstreamed. See https://github.com/NixOS/nixpkgs/issues/235147
|
||||||
services.pixelfed.package = pkgs.pixelfed.overrideAttrs (old: {
|
# patching failed
|
||||||
patches = (old.patches or [ ]) ++ [ ./group-permissions.patch ];
|
# services.pixelfed.package = pkgs.pixelfed.overrideAttrs (old: {
|
||||||
});
|
# patches = (old.patches or [ ]) ++ [ ./group-permissions.patch ];
|
||||||
|
# });
|
||||||
users.users.nginx.extraGroups = [ "pixelfed" ];
|
users.users.nginx.extraGroups = [ "pixelfed" ];
|
||||||
|
|
||||||
services.pixelfed = {
|
services.pixelfed = {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue