clean up gitea config from testing

This commit is contained in:
2025-11-07 17:20:10 -06:00
parent 2bbbd49a07
commit 38c0191ad2

View File

@@ -1,4 +1,4 @@
{ pkgs, config, lib, ... }: { pkgs, nixpkgs-unstable, config, lib, ... }:
let let
service = "gitea"; service = "gitea";
@@ -62,16 +62,12 @@ in
createHome = true; createHome = true;
group = service; group = service;
extraGroups = []; extraGroups = [];
# if you wanna attempt system ssh again
#openssh.authorizedKeys.keyFiles = [ #openssh.authorizedKeys.keyFiles = [
# "${cfg.data_dir}/.ssh/authorized_keys" # "${cfg.data_dir}/.ssh/authorized_keys"
#]; #];
}; };
services.openssh.extraConfig = ''
Match User gitea
AuthorizedKeysFile /var/lib/gitea/.ssh/authorized_keys
'';
# declare the gitea service # declare the gitea service
services.gitea = { services.gitea = {
enable = true; enable = true;