From 4abfe4eaef6212c091897d52e185c099607b1d20 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Fri, 27 May 2022 11:28:20 +0100 Subject: [PATCH] devshell: Fix on darwin --- devshell/vm-tasks.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 =