From f12da1cfafbf3bc2fe3e0b3e79dae449b0b20041 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Sun, 27 Sep 2020 13:09:35 +0200 Subject: Fix syntax errors --- platforms/common-packages.nix | 5 ++++- platforms/darwin/configuration.nix | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'platforms') diff --git a/platforms/common-packages.nix b/platforms/common-packages.nix index 9bfac5e..e9c36fd 100644 --- a/platforms/common-packages.nix +++ b/platforms/common-packages.nix @@ -1,4 +1,7 @@ +pkgs: +with pkgs; [ + stdenv curl wget vim @@ -8,4 +11,4 @@ ripgrep jq file -]; +] diff --git a/platforms/darwin/configuration.nix b/platforms/darwin/configuration.nix index da6e0aa..bed3593 100644 --- a/platforms/darwin/configuration.nix +++ b/platforms/darwin/configuration.nix @@ -1,13 +1,16 @@ { config, pkgs, ... }: let - common-packages = import ../common-packages.nix; + common_packages = import ../common-packages.nix pkgs; +in { # List packages installed in system profile. To search by name, run: # $ nix-env -qaP | grep wget environment.systemPackages = with pkgs; [ # Packages - ] ++ common-packages; + hello + ] + ++ common_packages; # Use a custom configuration.nix location. # $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix -- cgit 1.4.1