diff --git a/devshell/vm-tasks.nix b/devshell/vm-tasks.nix index 9bb9297..349f61f 100644 --- a/devshell/vm-tasks.nix +++ b/devshell/vm-tasks.nix @@ -1,6 +1,6 @@ { lib, pkgs, config, ... }: let - inherit (lib) mapAttrsToList; + inherit (lib) mkIf mapAttrsToList; inherit (lib.my) mkOpt; parseArgs = opts: @@ -96,7 +96,7 @@ in closeSocks ''; }; - vm-viewer = { + vm-viewer = mkIf (!pkgs.stdenv.isDarwin) { help = "Access remote VM's display with virt-viewer"; packages = with pkgs; [ virt-viewer ]; script =