Add second hypervisor
This commit is contained in:
parent
eab1652615
commit
5496ce5300
4 changed files with 312 additions and 6 deletions
49
hosts/nixmox-curiosity/hardware-configuration.nix
Normal file
49
hosts/nixmox-curiosity/hardware-configuration.nix
Normal file
|
@ -0,0 +1,49 @@
|
|||
{ lib, system, ... }:
|
||||
|
||||
{
|
||||
boot = {
|
||||
# use latest kernel
|
||||
# kernelPackages = pkgs.linuxPackages_latest;
|
||||
supportedFilesystems = [ "ext4" "btrfs" "xfs" "fat" "vfat" "cifs" "nfs" ];
|
||||
growPartition = true;
|
||||
kernelModules = [ "kvm-intel" ];
|
||||
kernelParams = lib.mkForce [ ];
|
||||
|
||||
loader = {
|
||||
grub = {
|
||||
enable = true;
|
||||
device = "nodev";
|
||||
efiSupport = true;
|
||||
efiInstallAsRemovable = true;
|
||||
};
|
||||
timeout = lib.mkForce 3;
|
||||
};
|
||||
|
||||
initrd = {
|
||||
availableKernelModules = [ "9p" "9pnet_virtio" "ata_piix" "uhci_hcd" "virtio_blk" "virtio_mmio" "virtio_net" "virtio_pci" "virtio_scsi" ];
|
||||
kernelModules = [ "virtio_balloon" "virtio_console" "virtio_rng" ];
|
||||
};
|
||||
|
||||
tmp.cleanOnBoot = true;
|
||||
};
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-label/nixos";
|
||||
autoResize = true;
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-label/ESP";
|
||||
fsType = "vfat";
|
||||
};
|
||||
};
|
||||
|
||||
services.fstrim = {
|
||||
enable = true;
|
||||
interval = "weekly";
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault system;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue