Enable ZFS
This commit is contained in:
parent
0883930abe
commit
5d83b1f30e
|
@ -94,4 +94,10 @@ in {
|
|||
enable = true;
|
||||
package = unstable.vmware-workstation;
|
||||
};
|
||||
|
||||
# ZFS
|
||||
boot.supportedFilesystems = [ "zfs" ];
|
||||
boot.zfs.forceImportRoot = false;
|
||||
# Generated with head -c4 /dev/urandom | od -A none -t x4
|
||||
networking.hostId = "bc94e9d3";
|
||||
}
|
||||
|
|
|
@ -8,6 +8,9 @@ let
|
|||
"10de:1ad9" # Usb ????
|
||||
];
|
||||
in {
|
||||
##
|
||||
## Kernel configuration
|
||||
##
|
||||
boot = {
|
||||
kernelParams = [
|
||||
# enable iommu
|
||||
|
@ -19,17 +22,23 @@ in {
|
|||
initrd.kernelModules = [ "vfio_pci" "vfio" "vfio_iommu_type1" ];
|
||||
};
|
||||
|
||||
##
|
||||
## Virtualization setup
|
||||
##
|
||||
environment.systemPackages = with pkgs; [ looking-glass-client ];
|
||||
virtualisation.spiceUSBRedirection.enable = true;
|
||||
virtualisation.libvirtd = {
|
||||
qemu = {
|
||||
# Enable tpm for windows 11
|
||||
swtpm.enable = true;
|
||||
ovmf = {
|
||||
enable = true;
|
||||
# Needed for secure boot
|
||||
packages = [ pkgs.OVMFFull.fd ];
|
||||
};
|
||||
};
|
||||
};
|
||||
# Looking glass shared memory
|
||||
systemd.tmpfiles.rules =
|
||||
[ "f /dev/shm/looking-glass 0660 nathan qemu-libvirtd -" ];
|
||||
|
||||
|
|
Loading…
Reference in New Issue