wip demo conf

This commit is contained in:
Florian Schmitt 2024-09-30 11:49:45 +03:00
parent 304f412950
commit 6b600b6745

View file

@ -2,13 +2,27 @@
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
services.xserver.enable = true;
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
users.users.alice = {
virtualisation.vmVariant.virtualisation.forwardPorts = [
{ from = "host"; host.port = 8001; guest.port = 8001; }
];
networking.hosts = {
"10.0.2.15" = [ "hedgedoc.nixin.local" ];
};
networking.firewall = {
allowedTCPPorts = [ 8001 ];
};
services.hedgedoc = {
enable = true;
settings.domain = "hedgedoc.nixin.local";
settings.port = 8001;
settings.host = "10.0.2.15";
settings.protocolUseSSL = true;
settings.allowOrigin = [
"localhost"
"hedgedoc.nixin.local"
];
};
users.users.operator = {
isNormalUser = true;
extraGroups = [ "wheel" ];
initialPassword = "test";