clean up gitea config from testing
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user