forked from Fediversity/Fediversity
Consolidate virtualisation options
This commit is contained in:
parent
a8dcc9f298
commit
6e260b3bdc
|
@ -40,7 +40,7 @@ NOTE: it sometimes takes a while for the services to start up, and in the meanti
|
||||||
```
|
```
|
||||||
- Creating other accounts has to be enabled via the admin interface. `Administration > Configuration > Basic > Enable Signup` or just add an account directly from `Administration > Create user`. But functionality can also be tested from the root account.
|
- Creating other accounts has to be enabled via the admin interface. `Administration > Configuration > Basic > Enable Signup` or just add an account directly from `Administration > Create user`. But functionality can also be tested from the root account.
|
||||||
|
|
||||||
- Pixelfed: <http://pixelfed.localhost:8000>
|
- Pixelfed: through the reverse proxy at <http://pixelfed.localhost:8080>
|
||||||
- Account creation via the web interface won't work until we figure out email
|
- Account creation via the web interface won't work until we figure out email
|
||||||
- For now, they can be created on the VM command line
|
- For now, they can be created on the VM command line
|
||||||
```bash
|
```bash
|
||||||
|
|
|
@ -32,29 +32,8 @@
|
||||||
extra-experimental-features = nix-command flakes
|
extra-experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# no graphics. see nixos-shell
|
virtualisation.memorySize = 2048;
|
||||||
virtualisation = {
|
|
||||||
graphics = false;
|
|
||||||
qemu.consoles = [
|
|
||||||
"tty0"
|
|
||||||
"hvc0"
|
|
||||||
];
|
|
||||||
qemu.options = [
|
|
||||||
"-serial null"
|
|
||||||
"-device virtio-serial"
|
|
||||||
"-chardev stdio,mux=on,id=char0,signal=off"
|
|
||||||
"-mon chardev=char0,mode=readline"
|
|
||||||
"-device virtconsole,chardev=char0,nr=0"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# we can't forward port 80 or 443, so let's run nginx on a different port
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
|
||||||
8443
|
|
||||||
8080
|
|
||||||
];
|
|
||||||
services.nginx.defaultSSLListenPort = 8443;
|
|
||||||
services.nginx.defaultHTTPListenPort = 8080;
|
|
||||||
virtualisation.forwardPorts = [
|
virtualisation.forwardPorts = [
|
||||||
{
|
{
|
||||||
from = "host";
|
from = "host";
|
||||||
|
@ -64,12 +43,12 @@
|
||||||
{
|
{
|
||||||
from = "host";
|
from = "host";
|
||||||
host.port = 8080;
|
host.port = 8080;
|
||||||
guest.port = 8080;
|
guest.port = 80;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
from = "host";
|
from = "host";
|
||||||
host.port = 8443;
|
host.port = 8443;
|
||||||
guest.port = 8443;
|
guest.port = 443;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,15 +33,6 @@
|
||||||
email = "none";
|
email = "none";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.memorySize = 2048;
|
|
||||||
virtualisation.forwardPorts = [
|
|
||||||
{
|
|
||||||
from = "host";
|
|
||||||
host.port = 44443;
|
|
||||||
guest.port = 443;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#### run mastodon as development environment
|
#### run mastodon as development environment
|
||||||
|
|
|
@ -23,13 +23,4 @@ in
|
||||||
enableACME = mkVMOverride false;
|
enableACME = mkVMOverride false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.memorySize = 2048;
|
|
||||||
virtualisation.forwardPorts = [
|
|
||||||
{
|
|
||||||
from = "host";
|
|
||||||
host.port = 8000;
|
|
||||||
guest.port = 80;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue