mirror of
https://github.com/kmein/niveum
synced 2026-03-21 12:21:08 +01:00
catullus: create user kfm, run ssh on 22022
This commit is contained in:
@@ -41,7 +41,8 @@ in {
|
|||||||
};
|
};
|
||||||
catullus = {
|
catullus = {
|
||||||
hostname = "catullus.r";
|
hostname = "catullus.r";
|
||||||
user = "root";
|
user = "kfm";
|
||||||
|
port = sshPort;
|
||||||
};
|
};
|
||||||
menstruation-logs = {
|
menstruation-logs = {
|
||||||
user = "root";
|
user = "root";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ catullus-ssh ? "root@catullus.r"
|
{ catullus-ssh ? "root@catullus.r:22022"
|
||||||
, scardanelli-ssh ? "root@scardanelli.r:22022"
|
, scardanelli-ssh ? "root@scardanelli.r:22022"
|
||||||
, homeros-ssh ? "root@homeros.r:22022"
|
, homeros-ssh ? "root@homeros.r:22022"
|
||||||
}:
|
}:
|
||||||
|
|||||||
@@ -51,23 +51,39 @@ in {
|
|||||||
environment.variables.TERM = "linux";
|
environment.variables.TERM = "linux";
|
||||||
environment.variables.HTOPRC = toString <dot/htoprc>;
|
environment.variables.HTOPRC = toString <dot/htoprc>;
|
||||||
|
|
||||||
programs.tmux.enable = true;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
git
|
git
|
||||||
vim
|
vim
|
||||||
htop
|
htop
|
||||||
wget
|
wget
|
||||||
|
reptyr
|
||||||
];
|
];
|
||||||
|
|
||||||
users.mutableUsers = false;
|
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 = [
|
users.users.root.openssh.authorizedKeys.keys = [
|
||||||
sshKey.homeros
|
sshKey.homeros
|
||||||
sshKey.scardanelli
|
sshKey.scardanelli
|
||||||
];
|
];
|
||||||
|
|
||||||
|
users.users.me.openssh.authorizedKeys.keys = [
|
||||||
|
sshKey.homeros
|
||||||
|
sshKey.scardanelli
|
||||||
|
];
|
||||||
|
|
||||||
networking.retiolum = {
|
networking.retiolum = {
|
||||||
ipv4 = "10.243.2.3";
|
ipv4 = "10.243.2.3";
|
||||||
ipv6 = "42:0:3c46:3ec0:7aad:d1d5:9842:da4c";
|
ipv6 = "42:0:3c46:3ec0:7aad:d1d5:9842:da4c";
|
||||||
|
|||||||
Reference in New Issue
Block a user