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