Add nimbus
Oracle Cloud
This commit is contained in:
parent
f63dbebd61
commit
6413bbefba
5 changed files with 178 additions and 3 deletions
51
hosts/nimbus/hardware-configuration.nix
Normal file
51
hosts/nimbus/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{
|
||||
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";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue