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;
|
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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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" ];
|
||||||
|
|
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue