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

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

View File

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