wip (works with encryption)
This commit is contained in:
parent
1a8ae5ded2
commit
6637450aa5
4 changed files with 12 additions and 3 deletions
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -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" ];
|
||||
|
|
|
@ -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
|
||||
];
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue