add gitolite

This commit is contained in:
Kopatz
2024-03-31 17:14:03 +02:00
parent 8581a34d16
commit 4df86b98ff
4 changed files with 14 additions and 3 deletions

View File

@@ -5,6 +5,7 @@
../services/acme.nix ../services/acme.nix
../services/adguard.nix ../services/adguard.nix
../services/github-runner.nix ../services/github-runner.nix
../services/gitolite.nix
../services/kavita.nix ../services/kavita.nix
../services/netdata.nix ../services/netdata.nix
../services/nextcloud.nix ../services/nextcloud.nix

View File

@@ -0,0 +1,7 @@
{ config, ...}:
{
services.gitolite = {
enable = true;
adminPubkey = config.mainUser.sshKey;
};
}

View File

@@ -7,6 +7,7 @@
{ {
imports = [ ../default.nix ]; imports = [ ../default.nix ];
mainUser.name = "kopatz"; mainUser.name = "kopatz";
mainUser.sshKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFeP6qtVqE/gu72ZUZE8cdRi3INiUW9NqDR7SjXIzTw2 kopatz";
home-manager = { home-manager = {
users.${config.mainUser.name} = import ./home.nix; users.${config.mainUser.name} = import ./home.nix;
@@ -23,8 +24,6 @@
firefox firefox
brave brave
]; ];
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [ mainUser.sshKey ];
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFeP6qtVqE/gu72ZUZE8cdRi3INiUW9NqDR7SjXIzTw2 lukas"
];
}; };
} }

View File

@@ -15,5 +15,9 @@
default = ""; default = "";
description = "keyboard variant"; description = "keyboard variant";
}; };
sshKey = lib.mkOption {
default = throw "No ssh key specified";
description = "Public key of the user";
}
}; };
} }