nixos-config/machines/Oracle-Cloud/hardware-configuration.nix

17 lines
526 B
Nix
Raw Normal View History

2021-10-24 23:10:56 +03:00
{ modulesPath, ... }:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.loader.grub = {
efiSupport = true;
efiInstallAsRemovable = true;
device = "nodev";
};
2022-01-29 00:50:24 +03:00
fileSystems."/boot" = { device = "/dev/disk/by-uuid/A368-4D28"; fsType = "vfat"; };
2021-10-24 23:10:56 +03:00
boot.initrd.kernelModules = [ "nvme" ];
fileSystems."/" = { device = "/dev/sda3"; fsType = "xfs"; };
2021-10-25 23:59:11 +03:00
swapDevices = [ {
2022-01-29 00:50:24 +03:00
device = "/dev/disk/by-partuuid/87bcc339-3295-4fc0-a219-1c31436b1c51";
2021-10-25 23:59:11 +03:00
randomEncryption.enable = true;
} ];
2022-01-29 00:50:24 +03:00
}