wip (works with encryption)

This commit is contained in:
Ingolf Wagner 2024-08-07 21:25:21 +02:00
parent 1a8ae5ded2
commit 6637450aa5
Signed by: palo
GPG key ID: 76BF5F1928B9618B
4 changed files with 12 additions and 3 deletions

View file

@ -12,7 +12,7 @@ with types;
type = listOf str; type = listOf str;
default = [ ]; default = [ ];
description = 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.enable = true;
components.nixos.boot.ssh.enable = true; components.nixos.boot.ssh.enable = true;
components.nixos.boot.ssh.kernelModules = ["virtio_pci"];
networking.hostName = "probe"; networking.hostName = "probe";
users.users.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJkqVvuJSvRMO5pG2CHNNBxjB7HlJudK4TQs3BhbOWOD" ]; users.users.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJkqVvuJSvRMO5pG2CHNNBxjB7HlJudK4TQs3BhbOWOD" ];

View file

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

View file

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