Enable ZFS
This commit is contained in:
parent
0883930abe
commit
5d83b1f30e
|
@ -94,4 +94,10 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = unstable.vmware-workstation;
|
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 ????
|
"10de:1ad9" # Usb ????
|
||||||
];
|
];
|
||||||
in {
|
in {
|
||||||
|
##
|
||||||
|
## Kernel configuration
|
||||||
|
##
|
||||||
boot = {
|
boot = {
|
||||||
kernelParams = [
|
kernelParams = [
|
||||||
# enable iommu
|
# enable iommu
|
||||||
|
@ -19,17 +22,23 @@ in {
|
||||||
initrd.kernelModules = [ "vfio_pci" "vfio" "vfio_iommu_type1" ];
|
initrd.kernelModules = [ "vfio_pci" "vfio" "vfio_iommu_type1" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
##
|
||||||
|
## Virtualization setup
|
||||||
|
##
|
||||||
environment.systemPackages = with pkgs; [ looking-glass-client ];
|
environment.systemPackages = with pkgs; [ looking-glass-client ];
|
||||||
virtualisation.spiceUSBRedirection.enable = true;
|
virtualisation.spiceUSBRedirection.enable = true;
|
||||||
virtualisation.libvirtd = {
|
virtualisation.libvirtd = {
|
||||||
qemu = {
|
qemu = {
|
||||||
|
# Enable tpm for windows 11
|
||||||
swtpm.enable = true;
|
swtpm.enable = true;
|
||||||
ovmf = {
|
ovmf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
# Needed for secure boot
|
||||||
packages = [ pkgs.OVMFFull.fd ];
|
packages = [ pkgs.OVMFFull.fd ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
# Looking glass shared memory
|
||||||
systemd.tmpfiles.rules =
|
systemd.tmpfiles.rules =
|
||||||
[ "f /dev/shm/looking-glass 0660 nathan qemu-libvirtd -" ];
|
[ "f /dev/shm/looking-glass 0660 nathan qemu-libvirtd -" ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue