A collection of example NixOS files that be included into configuration.nix on NixOS.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Craige McWhirter 88209418cd
Added a description of gites_for_NixOps
1年前
..
README.rst Added a description of gites_for_NixOps 1年前
gitea_for_NixOps.nix Added a production NixOps deployment 1年前
gitea_for_VM_testing.nix Updated comments 1年前
gitea_vm.nix Opened up tcp port 80 1年前

README.rst

gitea_vm.nix

A Nix configuration for a VM to run Gitea.

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.

To use this file:

Build with:

$ nix-build '<nixpkgs/nixos>' -A vm --arg configuration ./gitea_vm.nix

Export these variables, adjusting to suit yourself:

$ export QEMU_OPTS="-m 4192 --nographic"
$ export QEMU_NET_OPTS="hostfwd=tcp::18080-:80,hostfwd=tcp::10022-:22"

Launch the VM with:

$ ./result/bin/run-gitea-vm-vm

You should now be able to:

gitea_for_VM_testing.nix

This file describes the Gitea configuration to be deployed. As such it represents a deployment only suitable to testing purposes and should not be used as an example of a production deployment.

gitea_for_NixOps.nix

This provides an example of a production deployment of Gitea via NixOps.