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
service = "gitea";
@@ -62,16 +62,12 @@ in
createHome = true;
group = service;
extraGroups = [];
# if you wanna attempt system ssh again
#openssh.authorizedKeys.keyFiles = [
# "${cfg.data_dir}/.ssh/authorized_keys"
#];
};
services.openssh.extraConfig = ''
Match User gitea
AuthorizedKeysFile /var/lib/gitea/.ssh/authorized_keys
'';
# declare the gitea service
services.gitea = {
enable = true;