mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-04 09:56:34 +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.kernelModules = [ "kvm-amd" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
|
efi = {
|
||||||
|
canTouchEfiVariables = true;
|
||||||
|
efiSysMountPoint = "/boot";
|
||||||
|
};
|
||||||
grub = {
|
grub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
device = "/dev/disk/by-id/nvme-SAMSUNG_MZVL2512HCJQ-00B00_S675NX0RA55622";
|
efiSupport = true;
|
||||||
|
device = "nodev";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking = {
|
||||||
networking.usePredictableInterfaceNames = false;
|
useDHCP = false;
|
||||||
networking.dhcpcd.enable = false;
|
interfaces."enp41s0" = {
|
||||||
systemd.network = {
|
ipv4.addresses = [{ address = "85.10.200.204 "; prefixLength = 26; }];
|
||||||
enable = true;
|
ipv6.addresses = [{ address = "2a01:4f8:a0:31e5::"; prefixLength = 64; }];
|
||||||
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
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
defaultGateway = "85.10.200.193";
|
||||||
|
defaultGateway6 = { address = "fe80::1"; interface = "enp41s0"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
time.timeZone = "Europe/Berlin";
|
time.timeZone = "Europe/Berlin";
|
||||||
|
|
||||||
services.openssh.settings.PermitRootLogin = lib.mkForce "yes";
|
services.openssh.settings.PermitRootLogin = lib.mkForce "yes";
|
||||||
|
|
||||||
|
services.openssh.ports = [ 2222 ];
|
||||||
|
|
||||||
console = {
|
console = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
@ -56,7 +53,7 @@
|
||||||
type = "disk";
|
type = "disk";
|
||||||
content = {
|
content = {
|
||||||
type = "table";
|
type = "table";
|
||||||
format = "msdos";
|
format = "gpt";
|
||||||
partitions = [
|
partitions = [
|
||||||
{
|
{
|
||||||
name = "ESP";
|
name = "ESP";
|
||||||
|
|
Loading…
Reference in a new issue