wip (works with encryption)

This commit is contained in:
Ingolf Wagner 2024-08-07 21:25:21 +02:00
parent 1a8ae5ded2
commit 6637450aa5
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
4 changed files with 12 additions and 3 deletions

View file

@ -12,7 +12,7 @@ with types;
type = listOf str;
default = [ ];
description =
"lspci -v will tell you which kernel module is used for the ethernet interface";
"nix-shell -p pciutils --run 'lspci -v' will tell you which kernel module is used for the ethernet interface";
};
};

View file

@ -12,6 +12,8 @@
components.nixos.boot.enable = true;
components.nixos.boot.ssh.enable = true;
components.nixos.boot.ssh.kernelModules = ["virtio_pci"];
networking.hostName = "probe";
users.users.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJkqVvuJSvRMO5pG2CHNNBxjB7HlJudK4TQs3BhbOWOD" ];

View file

@ -1,7 +1,8 @@
{ config, factsGenerator, clanLib, ... }:
{
imports = [
./disko-config-simple.nix
#./disko-config-simple.nix
./disko-config-encrypted.nix
./hardware-configuration.nix
./hetzner.nix # to more me to components
];

View file

@ -1,12 +1,18 @@
{config, ... }:
{
systemd.network.enable = true;
systemd.network.networks."10-private-hetzner" = {
systemd.network.networks."10-hetzner" = {
matchConfig.Name = "e*";
networkConfig.DHCP = "ipv4";
linkConfig.RequiredForOnline = "routable";
};
boot.initrd.systemd.network.networks."10-hetzner" = config.systemd.network.networks."10-hetzner";
boot.loader.grub = {
efiSupport = true;
efiInstallAsRemovable = true;
};
}