nixin-web/inventory/demo-configuration.nix

33 lines
807 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 = {
"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 = {
2024-09-28 17:11:22 +00:00
isNormalUser = true;
extraGroups = [ "wheel" ];
initialPassword = "test";
};
system.stateVersion = "24.05";
}