diff --git a/inventory/demo-configuration.nix b/inventory/demo-configuration.nix index c2166f0..d924f8d 100644 --- a/inventory/demo-configuration.nix +++ b/inventory/demo-configuration.nix @@ -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";