all repos — nixfiles @ 54ece8e09c42b9537f7ff962d965c1732e425519

System and user configuration, managed by nix and home-manager

satoshipay: disable broken GUI packages on macOS
Alan Pearce alan@alanpearce.eu
Sat, 05 Oct 2019 00:55:25 +0200
commit

54ece8e09c42b9537f7ff962d965c1732e425519

parent

9f6dc506d7d3c46bdd19c7d3a1e306b0304eab1c

1 files changed, 8 insertions(+), 4 deletions(-)

jump to
M user/modules/satoshipay.nixuser/modules/satoshipay.nix
@@ -1,6 +1,7 @@ { config, pkgs, ... }:
 
 let
+  inherit (pkgs) stdenv;
   spGitConfig = {
     user.email = "alan@satoshipay.io";
   };
@@ -13,11 +14,10 @@   home.sessionVariables = {
     KUBECTX_IGNORE_FZF = "1";
   };
-  home.packages = with pkgs; [
+  home.packages = with pkgs; ([
     caddy
     openssl
     mongodb-tools
-    pgadmin
     pgcli
     s3cmd
     sops
@@ -27,12 +27,16 @@ unstable.google-cloud-sdk     unstable.docker_compose
     unstable.kubernetes
     unstable.kubectx
-    unstable.redis-desktop-manager
     unstable.kubernetes-helm
     unstable.helmfile
+  ] ++ (lib.optionals (!stdenv.isDarwin)
+  [
+    pgadmin
+
+    unstable.redis-desktop-manager
     unstable.robo3t
     unstable.slack
-  ];
+  ]));
 
   programs.git.includes = [
     {