about summary refs log tree commit diff
path: root/platforms
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-09-27 13:09:35 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-09-27 13:09:35 +0200
commitf12da1cfafbf3bc2fe3e0b3e79dae449b0b20041 (patch)
treed539bb40495b1d9a7e5349ccd57598e95936605e /platforms
parent8d22fcabcc9e5a6c1ca15a51def7059060ececad (diff)
downloaddots-f12da1cfafbf3bc2fe3e0b3e79dae449b0b20041.tar.gz
dots-f12da1cfafbf3bc2fe3e0b3e79dae449b0b20041.zip
Fix syntax errors
Diffstat (limited to 'platforms')
-rw-r--r--platforms/common-packages.nix5
-rw-r--r--platforms/darwin/configuration.nix7
2 files changed, 9 insertions, 3 deletions
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