weinturm-infra/hosts/pbx/configuration.nix
2025-07-23 11:45:42 +02:00

55 lines
1.2 KiB
Nix

{config, ...}: {
imports = [
./disko.nix
../../users/jalr
./networking.nix
./services
];
weinturm = {
impermanence = {
enable = true;
rootDevice = config.disko.devices.disk.disk1.content.partitions.nixos.device;
};
zram.enable = true;
};
boot = {
initrd = {
availableKernelModules = ["xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod"];
};
kernelModules = ["kvm-intel"];
kernelParams = [
"console=ttyS0,115200"
"console=tty1"
];
loader = {
efi = {
efiSysMountPoint = "/boot";
canTouchEfiVariables = false;
};
generationsDir.copyKernels = true;
grub = {
devices = ["/dev/sda"];
efiInstallAsRemovable = true;
copyKernels = true;
efiSupport = true;
mirroredBoots = [
{
path = "/boot1";
devices = ["/dev/sdb"];
}
];
extraConfig = ''
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
terminal_input --append serial
terminal_output --append serial
'';
};
};
};
system.stateVersion = "25.05"; # Did you read the comment?
}