Browse Source

Opened up tcp port 80

master
Craige McWhirter 2 years ago
parent
commit
7a5f7bfea3
Signed by: craige GPG Key ID: A4122FF3971B6865
  1. 16
      version-management/gitea_vm.nix

16
version-management/gitea_vm.nix

@ -1,7 +1,8 @@
# Nix configuration for a VM to run Hydra from master
# Nix configuration for a VM to run Gitea
#
# It is intended as an example of building a VM that builds Hydra from the
# upstream source instead of from nixpkgs.
# It is intended as an example of building a VM that builds Gitea for testing
# and evaluation purposes. I does not represent a production or secure
# deployment.
{ config, pkgs, lib, ... }:
@ -15,8 +16,8 @@
networking.hostName = "gitea-vm"; # Define your hostname.
system.stateVersion = "19.03"; # The version of NixOS originally installed
# Set security options:
# Set security options:
security = {
sudo = {
enable = true; # Enable sudo
@ -24,6 +25,7 @@
};
};
networking.firewall.allowedTCPPorts = [ 80 ];
# List services that you want to enable:
services.openssh = {
@ -40,11 +42,11 @@
];
};
# Users of the Hydra VM:
# Users of the Gitea VM:
users.mutableUsers = false; # Remove any users not defined in here
users.users.root = {
password = "123456"; # Proably want to change this in production
password = "123456"; # Proably want to change this in production
};
# Misc groups:
@ -56,7 +58,7 @@
uid = 1000;
group = "nixos";
extraGroups = [ "wheel" ];
password = "123456"; # Proably want to change this in production
password = "123456"; # Proably want to change this in production
};
}
Loading…
Cancel
Save