Browse Source

Opened up tcp port 80

master
Craige McWhirter 1 year ago
parent
commit
7a5f7bfea3
Signed by: craige <craige@mcwhirter.com.au> GPG Key ID: A4122FF3971B6865
1 changed files with 9 additions and 7 deletions
  1. +9
    -7
      version-management/gitea_vm.nix

+ 9
- 7
version-management/gitea_vm.nix View File

@@ -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