about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2022-12-04 15:02:59 -0500
committerGitHub <noreply@github.com>2022-12-04 15:02:59 -0500
commit4eebb348553be4622435ccb40da66c3139e7a9d1 (patch)
treea220e35f6c241f79706824da914c3ae4663972c8 /nixos
parentca2cc36c68eb27a20e397743ea0729cf7d4ac9a2 (diff)
parentc3cfa83884d861f249984a2d59dbff458cb381b8 (diff)
Merge pull request #204297 from bjornfor/nixos-fix-lxd-init
nixos/lxd: add missing util-linux to $PATH
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/virtualisation/lxd.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/lxd.nix b/nixos/modules/virtualisation/lxd.nix
index e3eb519b7dddf..c06716e5eb605 100644
--- a/nixos/modules/virtualisation/lxd.nix
+++ b/nixos/modules/virtualisation/lxd.nix
@@ -140,7 +140,8 @@ in {
       ];
       documentation = [ "man:lxd(1)" ];
 
-      path = optional cfg.zfsSupport config.boot.zfs.package;
+      path = [ pkgs.util-linux ]
+        ++ optional cfg.zfsSupport config.boot.zfs.package;
 
       serviceConfig = {
         ExecStart = "@${cfg.package}/bin/lxd lxd --group lxd";