about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdam Stephens <adam@valkor.net>2024-01-23 12:51:18 -0500
committerAdam Stephens <adam@valkor.net>2024-02-02 12:36:41 -0500
commit7585f26855f12bd56b82e170617454443eb39a4e (patch)
treef325bffb68ac516c05d6290dbadf601c17807ccf
parent37471261557cb6e1aad5ad2bb92e10c9de609849 (diff)
downloadnixlib-7585f26855f12bd56b82e170617454443eb39a4e.tar
nixlib-7585f26855f12bd56b82e170617454443eb39a4e.tar.gz
nixlib-7585f26855f12bd56b82e170617454443eb39a4e.tar.bz2
nixlib-7585f26855f12bd56b82e170617454443eb39a4e.tar.lz
nixlib-7585f26855f12bd56b82e170617454443eb39a4e.tar.xz
nixlib-7585f26855f12bd56b82e170617454443eb39a4e.tar.zst
nixlib-7585f26855f12bd56b82e170617454443eb39a4e.zip
nixos/incus: add zfs/lib/udev to path
Incus needs to find zvol_id for some operations, but zfs does not put
this executable in the bin directory. Exposing lib/udev into the Incus
path solves discovery of the executable

https://github.com/lxc/incus/blob/e5690705e842d3961d8a1d18c0ec002c25345af8/internal/server/storage/drivers/driver_zfs_volumes.go#L1820C1-L1820C41
-rw-r--r--nixos/modules/virtualisation/incus.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/incus.nix b/nixos/modules/virtualisation/incus.nix
index ea4cb916aa08..bbe5b48b95bb 100644
--- a/nixos/modules/virtualisation/incus.nix
+++ b/nixos/modules/virtualisation/incus.nix
@@ -160,7 +160,10 @@ in
         "network-online.target"
       ];
 
-      path = lib.mkIf config.boot.zfs.enabled [ config.boot.zfs.package ];
+      path = lib.mkIf config.boot.zfs.enabled [
+        config.boot.zfs.package
+        "${config.boot.zfs.package}/lib/udev"
+      ];
 
       environment = {
         # Override Path to the LXC template configuration directory