1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

catullus: create user kfm, run ssh on 22022

This commit is contained in:
Kierán Meinhardt
2019-06-08 14:59:43 +02:00
parent 62470ccdd9
commit 5ab93d24b0
3 changed files with 22 additions and 5 deletions

View File

@@ -51,23 +51,39 @@ in {
environment.variables.TERM = "linux";
environment.variables.HTOPRC = toString <dot/htoprc>;
programs.tmux.enable = true;
environment.systemPackages = with pkgs; [
git
vim
htop
wget
reptyr
];
users.mutableUsers = false;
users.users.me = {
name = "kfm";
home = "/home/kfm";
createHome = true;
group = "users";
hashedPassword = "$6$w9hXyGFl/.IZBXk$5OiWzS1G.5hImhh1YQmZiCXYNAJhi3X6Y3uSLupJNYYXPLMsQpx2fwF4Xr2uYzGMV8Foqh8TgUavx1APD9rcb/";
shell = pkgs.bash;
};
services.openssh = {
enable = true;
ports = [ 22022 ];
};
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = [
sshKey.homeros
sshKey.scardanelli
];
users.users.me.openssh.authorizedKeys.keys = [
sshKey.homeros
sshKey.scardanelli
];
networking.retiolum = {
ipv4 = "10.243.2.3";
ipv6 = "42:0:3c46:3ec0:7aad:d1d5:9842:da4c";