sombrero: Cleanup networking/ssh
This commit is contained in:
@@ -46,17 +46,29 @@
|
|||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "sombrero";
|
hostName = "sombrero";
|
||||||
ipv4 = {
|
|
||||||
addresses = [{
|
interfaces = {
|
||||||
address = "192.168.50.200";
|
eth0 = {
|
||||||
prefixLength = 24;
|
ipv4 = {
|
||||||
}];
|
addresses = [{
|
||||||
|
address = "192.168.50.200";
|
||||||
|
prefixLength = 24;
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
firewall = {
|
||||||
|
allowedTCPPorts = [ 1122 ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.openssh.enable = true;
|
services = {
|
||||||
services.openssh.ports = [ 1122 ];
|
openssh = {
|
||||||
networking.firewall.allowedTCPPorts = [ 1122 ];
|
enable = true;
|
||||||
|
ports = [ 1122 ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
users = {
|
users = {
|
||||||
mutableUsers = false;
|
mutableUsers = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user