fixup! WIP: hyper: Init

This commit is contained in:
Simon Bruder 2024-03-12 00:01:36 +01:00
parent acb07155ad
commit d23daad7c6
Signed by: simon
GPG key ID: 347FF8699CDA0776

View file

@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: AGPL-3.0-or-later
{ pkgs, ... }:
{ lib, pkgs, ... }:
{
imports = [
@ -26,4 +26,38 @@
environment.systemPackages = with pkgs; [
virtiofsd
];
fileSystems = {
"/data/shared" = {
device = "/dev/hyper-vg/shared";
fsType = "btrfs";
options = [ "discard=async" "noatime" "compress=zstd" ];
};
};
#environment.etc."libvirt/hooks/qemu".source = pkgs.writeShellScript "libvirt-qemu-hook" ''
# set -euo pipefail
# object="$1"
# operation="$2"
# sub_operation="$3"
# extra_arg="$4"
# intel_arc_reset_hack_guests=(
# "virtdows"
# )
# case "$operation" in
# start)
# if [ "$sub_operation" = "begin" ]; then
# for guest in "''${intel_arc_reset_hack_guests[@]}"; do
# if [ "$guest" = "$object" ]; then
# echo "Applied intel arc reset hack for guest $guest"
# echo > /sys/bus/pci/devices/0000:08:00.0/reset_method
# fi
# done
# fi
# ;;
# esac
#'';
}