forgejo: convert to nixos module

This commit is contained in:
Katherina Walshe-Grey 2024-07-24 17:29:26 +01:00
parent f36cd49121
commit 049e3ff091
5 changed files with 83 additions and 51 deletions

View file

@ -4,12 +4,27 @@
imports = [
./hardware-configuration.nix
./home.nix
./forgejo.nix
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
qenya.services.forgejo = {
enable = true;
domain = "git.qenya.tel";
stateDir = "/data/forgejo";
};
services.nginx = {
enable = true;
virtualHosts = {
"git.katherina.rocks" = {
forceSSL = true;
enableACME = true;
locations."/".return = "301 https://git.qenya.tel$request_uri";
};
};
};
system.stateVersion = "23.11";
}