nixin-web/inventory/demo-configuration.nix

35 lines
877 B
Nix
Raw Normal View History

2024-09-28 17:11:22 +00:00
{ config, pkgs, ... }:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
2024-09-30 08:49:45 +00:00
virtualisation.vmVariant.virtualisation.forwardPorts = [
{ from = "host"; host.port = 8001; guest.port = 8001; }
];
networking.hosts = {
2024-09-30 09:18:45 +00:00
"127.0.0.1" = [ "hedgedoc.nixin.local" ];
2024-09-30 08:49:45 +00:00
};
2024-09-30 09:18:45 +00:00
networking.hostName = "demo";
#networking.firewall.enable = false;
2024-09-30 08:49:45 +00:00
networking.firewall = {
allowedTCPPorts = [ 8001 ];
};
services.hedgedoc = {
enable = true;
settings.domain = "hedgedoc.nixin.local";
settings.port = 8001;
2024-09-30 09:18:45 +00:00
settings.host = "0.0.0.0";
settings.protocolUseSSL = false;
2024-09-30 08:49:45 +00:00
settings.allowOrigin = [
"localhost"
"hedgedoc.nixin.local"
];
};
users.users.operator = {
2024-09-28 17:11:22 +00:00
isNormalUser = true;
extraGroups = [ "wheel" ];
initialPassword = "test";
};
system.stateVersion = "24.05";
}