-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvultr.nix
More file actions
35 lines (28 loc) · 1.55 KB
/
vultr.nix
File metadata and controls
35 lines (28 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ config, ... }:
{
imports = [ # Include the results of the hardware scan.
./hardware-configuration.nix
];
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/vda";
networking.interfaces.ens7 = {
useDHCP=true;
mtu = 1450;
ipv4.addresses = [ {
address = config.networking.privateIPv4;
prefixLength = 20;
} ];
};
services.ntp.enable = true;
services.openssh.enable = true;
services.openssh.permitRootLogin = "yes";
services.openssh.passwordAuthentication = false;
services.openssh.challengeResponseAuthentication = false;
services.openssh.allowSFTP = false;
time.timeZone = "America/New_York";
users.users.root = {
openssh.authorizedKeys.keys = ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDbqW6Df+2U1UM5UJ5na3pzMlvnF+/0DCVvMdfgpe8g0HVSFD7Hb4ScTSAJRO+atZe22c/9wvAgr8L6BjWDpM/iL7CDArgxZ3isgDBiM8u7arp+9qWHa6GUKVtDTKc3D344pbEXTa8cS+7PWMjY2allJvSYig7EghVFXj0JKBFEep/I+ekR/poZXi7Bj6mG3FZaUHCaCAN1iM4UT9mETM50VcuP/0/Z659YYGcgG06AII4a3h5pWpPa05FJHbcuFNgfnGh9dJrVnzidPJAT3dpww6s530WdnGMdWgHiFIlK5j7ZbuDm3Ga/VKa2n5NUDriaXJGzBq5eO2g8YKagAZDFIqCUErhsUag9MSxl6CLE7gEb9B2cD6xst8YwzLKfEEy10RinTxgl+zfLbsSQGpMr/juLtzuJTVNpFkp2omWxf+2i5ESaZr/vGh35+aWCXN3kbgWPEhafytxLdS6gqYDRG/ict67zifgfuCBwEXwT0Qek1deBLtv9VlGE1aANnb/p/NuvGT2hc8TEWhFIF6GJUA3OKRuwUiza/nS50W0U4RvOrqlFlyVX8ltOqMg3vMzmcjcQOgCHDHIVL429i05H4VhOQmzsmsD3s6o178CczGuQ2xXzWNYarFAJzKKk6zWHOYflVbxC9BV3yoqzvdOlt33PziKd5vpfREexhaM3mw== jim@dual"];
};
}