From b088049c45ef316e40412b15af6aa481ce0f2e5c Mon Sep 17 00:00:00 2001 From: catvayor Date: Fri, 15 Nov 2024 15:09:52 +0100 Subject: [PATCH] feat(virtiofs): moved son root on virtiofs --- machines/kat-manah/default.nix | 5 ++++- machines/kat-son/disks.nix | 19 ++++++------------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/machines/kat-manah/default.nix b/machines/kat-manah/default.nix index c7c80dd..ba00500 100644 --- a/machines/kat-manah/default.nix +++ b/machines/kat-manah/default.nix @@ -79,7 +79,10 @@ ]; programs.virt-manager.enable = true; - virtualisation.libvirtd.enable = true; + virtualisation.libvirtd = { + enable = true; + qemu.vhostUserPackages = [ pkgs.virtiofsd ]; + }; security.acme = { acceptTerms = true; diff --git a/machines/kat-son/disks.nix b/machines/kat-son/disks.nix index 16a2ee4..43ff88d 100644 --- a/machines/kat-son/disks.nix +++ b/machines/kat-son/disks.nix @@ -9,28 +9,21 @@ partitions = { ESP = { type = "EF00"; - size = "100M"; + size = "100%"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; }; }; - root = { - size = "100%"; - content = { - type = "filesystem"; - format = "bcachefs"; - mountpoint = "/"; - mountOptions = [ - "fsck" - "fix_errors" - ]; - }; - }; }; }; }; }; }; + boot.initrd.kernelModules = [ "virtiofs" ]; + fileSystems."/" = { + device = "root"; + fsType = "virtiofs"; + }; }