nix-config/hosts/nimbus/hardware-configuration.nix
Jan Kremer 6413bbefba
Add nimbus
Oracle Cloud
2026-03-25 17:55:33 +01:00

51 lines
872 B
Nix

{
lib,
modulesPath,
...
}:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.loader = {
efi.efiSysMountPoint = "/boot/efi";
grub = {
efiSupport = true;
efiInstallAsRemovable = true;
device = "nodev";
};
};
boot.initrd = {
availableKernelModules = [
"ata_piix"
"uhci_hcd"
"xen_blkfront"
"vmw_pvscsi"
];
kernelModules = [ "nvme" ];
};
fileSystems = {
"/boot/efi" = {
device = "/dev/disk/by-uuid/349C-BCCC";
fsType = "vfat";
};
"/" = {
device = "/dev/mapper/ocivolume-root";
fsType = "xfs";
};
};
# fileSystems.swapDevices = [
# {
# device = "/swapfile";
# size = 1024; # 1GB
# }
# ];
# networking = {
# useDHCP = lib.mkDefault true;
# };
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}