Gitweb working

This commit is contained in:
Trevor Vallender 2023-09-28 11:49:13 +01:00
parent 2e807cf63c
commit 85352086d9
3 changed files with 10 additions and 2 deletions

View File

@ -2,7 +2,10 @@
{ {
services.gitweb = { services.gitweb = {
projectroot = "/home/tsv/git"; gitwebTheme = true;
extraConfig = ''
our $site_name = "~tsvallenders git";
'';
}; };
} }

View File

@ -12,7 +12,7 @@
gitweb = { gitweb = {
enable = true; enable = true;
virtualHost = "git.tsvallender.co.uk"; virtualHost = "git.tsvallender.co.uk";
location = "/gitweb"; location = "/web";
}; };
virtualHosts."git.tsvallender.co.uk" = { virtualHosts."git.tsvallender.co.uk" = {
forceSSL = true; forceSSL = true;

View File

@ -18,6 +18,10 @@
environment.variables.LC_ALL = "en_GB.UTF-8"; environment.variables.LC_ALL = "en_GB.UTF-8";
time.timeZone = "Europe/London"; time.timeZone = "Europe/London";
users.groups = {
git = { };
};
users.users.tsv = { users.users.tsv = {
isNormalUser = true; isNormalUser = true;
@ -26,6 +30,7 @@
"docker" "docker"
"tmux" "tmux"
"davfs2" "davfs2"
"git"
]; ];
initialPassword = "password"; initialPassword = "password";
openssh.authorizedKeys.keyFiles = [ openssh.authorizedKeys.keyFiles = [