let
new-repo = pkgs.writeShellScriptBin "new-repo" ''
-mkdir -p ${config.users.extraUsers.git.home}/repos/''${1}.git
-${pkgs.git}/bin/git init --bare ${config.users.extraUsers.git.home}/repos/''${1}.git/
-chown -R git:git ${config.users.extraUsers.git.home}/repos
-'';
- in
-{
+ mkdir -p ${config.users.extraUsers.git.home}/repos/''${1}.git
+ ${pkgs.git}/bin/git init --bare ${config.users.extraUsers.git.home}/repos/''${1}.git/
+ chown -R git:git ${config.users.extraUsers.git.home}/repos
+ '';
+in {
+ imports = [ ../secrets/keys/git.nix ];
+
users.extraUsers.git = {
uid = 402;
isSystemUser = true;
enable = true;
location = "/git";
group = "git";
- virtualHost = "awful.systems";
+ #virtualHost = "awful.systems these.awful.systems these";
};
services.gitweb = {