mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-01 17:36:33 +01:00
hetzner improvemnts
This commit is contained in:
parent
831f370c58
commit
c8c58562bd
1 changed files with 16 additions and 19 deletions
|
@ -16,36 +16,33 @@
|
|||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
boot.loader = {
|
||||
efi = {
|
||||
canTouchEfiVariables = true;
|
||||
efiSysMountPoint = "/boot";
|
||||
};
|
||||
grub = {
|
||||
enable = true;
|
||||
device = "/dev/disk/by-id/nvme-SAMSUNG_MZVL2512HCJQ-00B00_S675NX0RA55622";
|
||||
efiSupport = true;
|
||||
device = "nodev";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
networking.usePredictableInterfaceNames = false;
|
||||
networking.dhcpcd.enable = false;
|
||||
systemd.network = {
|
||||
enable = true;
|
||||
networks."eth0" = {
|
||||
extraConfig = ''
|
||||
[Match]
|
||||
Name = eth0
|
||||
[Network]
|
||||
# Add your own assigned ipv6 subnet here here!
|
||||
Address = 2a01:4f8:a0:31e5::/64
|
||||
Gateway = fe80::1
|
||||
# optionally you can do the same for ipv4 and disable DHCP (networking.dhcpcd.enable = false;)
|
||||
Address = 85.10.200.204
|
||||
Gateway = 85.10.200.193
|
||||
'';
|
||||
networking = {
|
||||
useDHCP = false;
|
||||
interfaces."enp41s0" = {
|
||||
ipv4.addresses = [{ address = "85.10.200.204 "; prefixLength = 26; }];
|
||||
ipv6.addresses = [{ address = "2a01:4f8:a0:31e5::"; prefixLength = 64; }];
|
||||
};
|
||||
defaultGateway = "85.10.200.193";
|
||||
defaultGateway6 = { address = "fe80::1"; interface = "enp41s0"; };
|
||||
};
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
services.openssh.settings.PermitRootLogin = lib.mkForce "yes";
|
||||
|
||||
services.openssh.ports = [ 2222 ];
|
||||
|
||||
console = {
|
||||
enable = true;
|
||||
};
|
||||
|
@ -56,7 +53,7 @@
|
|||
type = "disk";
|
||||
content = {
|
||||
type = "table";
|
||||
format = "msdos";
|
||||
format = "gpt";
|
||||
partitions = [
|
||||
{
|
||||
name = "ESP";
|
||||
|
|
Loading…
Reference in a new issue