parent
fc85515fb8
commit
1e236f8f71
10 changed files with 157 additions and 26 deletions
|
|
@ -1,8 +1,7 @@
|
|||
{ ... }:
|
||||
{ host, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./forgejo.nix
|
||||
];
|
||||
boot.tmp.cleanOnBoot = true;
|
||||
boot.kernel.sysctl = {
|
||||
|
|
@ -60,7 +59,7 @@
|
|||
networking = {
|
||||
domain = "";
|
||||
hostId = "81238132";
|
||||
hostName = "oracle1";
|
||||
hostName = host.hostName;
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [
|
||||
|
|
|
|||
24
nixos/oracle/forgejo-runner.nix
Normal file
24
nixos/oracle/forgejo-runner.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
sops = {
|
||||
secrets = {
|
||||
"forgejo-runner" = {
|
||||
sopsFile = ../../secrets/forgejo-runner.yaml;
|
||||
};
|
||||
};
|
||||
};
|
||||
virtualisation.docker.enable = true;
|
||||
services.gitea-actions-runner = {
|
||||
package = pkgs.forgejo-actions-runner;
|
||||
instances.default = {
|
||||
enable = true;
|
||||
name = "oracle-runner1";
|
||||
url = "https://git.10110110.xyz";
|
||||
tokenFile = config.sops.secrets."forgejo-runner".path;
|
||||
labels = [
|
||||
"ubuntu-latest:docker://node:20-bullseye"
|
||||
"nix-latest:docker://nixos/nix:latest"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -39,6 +39,10 @@ in
|
|||
database.type = "sqlite3";
|
||||
dump.enable = true;
|
||||
settings = {
|
||||
DEFAULT = {
|
||||
APP_NAME = "git.10110110.xyz";
|
||||
APP_SLOGAN = "No rice, no life.";
|
||||
};
|
||||
server = {
|
||||
DOMAIN = "git.10110110.xyz";
|
||||
# You need to specify this to remove the port from URLs in the web UI.
|
||||
|
|
@ -46,6 +50,10 @@ in
|
|||
HTTP_PORT = 3000;
|
||||
};
|
||||
service.DISABLE_REGISTRATION = true;
|
||||
oauth2_client = {
|
||||
ENABLE_AUTO_REGISTRATION = true;
|
||||
UPDATE_AVATAR = true;
|
||||
};
|
||||
session.COOKIE_SECURE = true;
|
||||
actions = {
|
||||
ENABLED = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue