From 9036dc7c32739d302cdd6fe51fe2d01418a99c9d Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Tue, 26 May 2020 10:43:19 -0400 Subject: Beginnings of config for Darwin machines Split out a platforms/ directory with a linux.nix and darwin.nix, and starting splitting things out between the two --- home/modules/games.nix | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'home/modules/games.nix') diff --git a/home/modules/games.nix b/home/modules/games.nix index c68342ba6b..a9adf9c910 100644 --- a/home/modules/games.nix +++ b/home/modules/games.nix @@ -1,6 +1,7 @@ { config, lib, pkgs, ... }: with pkgs; +with lib; let @@ -42,13 +43,16 @@ let chmod +x $out/bin/dwarf-fortress ''; -in { - imports = [ - ./obs.nix - ]; +in mkMerge [ + { + home.packages = [ + crawl + ]; + } + (mkIf stdenv.isLinux { + home.packages = [ + df + ]; + }) +] - home.packages = [ - crawl - df - ]; -} -- cgit 1.4.1