diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2016-12-11 16:33:42 +0100 |
|---|---|---|
| committer | Daiderd Jordan <daiderd@gmail.com> | 2016-12-11 16:33:42 +0100 |
| commit | da4433fbf8343a2a964e0896ac0c08778aca4a2b (patch) | |
| tree | 41d4ed7f7fffa02eb7eecde1153d0b459808085c | |
| parent | 41d40d04172bca296374a39f040226e5a469f531 (diff) | |
add nix-tools to environment.systemPackages by default
| -rw-r--r-- | README.md | 8 | ||||
| -rw-r--r-- | modules/examples/lnl.nix | 5 | ||||
| -rw-r--r-- | modules/examples/simple.nix | 8 | ||||
| -rw-r--r-- | modules/nix/nix-tools.nix | 5 | ||||
| -rw-r--r-- | modules/nix/nixpkgs.nix | 2 |
5 files changed, 17 insertions, 11 deletions
@@ -48,10 +48,7 @@ Checkout [modules/examples](https://github.com/LnL7/nix-darwin/tree/master/modul # List packages installed in system profile. To search by name, run: # $ nix-env -qaP | grep wget environment.systemPackages = - [ # Include nix-tools - config.system.build.nix - - pkgs.nix-repl + [ pkgs.nix-repl ]; environment.etc."bashrc".text = '' @@ -69,5 +66,8 @@ Checkout [modules/examples](https://github.com/LnL7/nix-darwin/tree/master/modul ${config.system.build.setEnvironment} ${config.system.build.setAliases} ''; + + services.activate-system.enable = true; + } ``` diff --git a/modules/examples/lnl.nix b/modules/examples/lnl.nix index 06f876f..ed93174 100644 --- a/modules/examples/lnl.nix +++ b/modules/examples/lnl.nix @@ -1,11 +1,10 @@ { config, lib, pkgs, ... }: { environment.systemPackages = - [ config.system.build.nix - - pkgs.lnl.zsh + [ pkgs.lnl.zsh pkgs.lnl.tmux pkgs.lnl.vim + pkgs.curl pkgs.fzf pkgs.gettext diff --git a/modules/examples/simple.nix b/modules/examples/simple.nix index 1dbe3f1..fd13cf8 100644 --- a/modules/examples/simple.nix +++ b/modules/examples/simple.nix @@ -4,10 +4,7 @@ # List packages installed in system profile. To search by name, run: # $ nix-env -qaP | grep wget environment.systemPackages = - [ # Include nix-tools - config.system.build.nix - - pkgs.nix-repl + [ pkgs.nix-repl ]; environment.etc."bashrc".text = '' @@ -25,4 +22,7 @@ ${config.system.build.setEnvironment} ${config.system.build.setAliases} ''; + + services.activate-system.enable = true; + } diff --git a/modules/nix/nix-tools.nix b/modules/nix/nix-tools.nix index 5c33697..11b222b 100644 --- a/modules/nix/nix-tools.nix +++ b/modules/nix/nix-tools.nix @@ -15,5 +15,10 @@ in ln -s ${tools.darwin-rebuild} $out/bin/darwin-rebuild ''; + environment.systemPackages = + [ # Include nix-tools by default + config.system.build.nix + ]; + }; } diff --git a/modules/nix/nixpkgs.nix b/modules/nix/nixpkgs.nix index 3b09369..7bef9ee 100644 --- a/modules/nix/nixpkgs.nix +++ b/modules/nix/nixpkgs.nix @@ -66,8 +66,10 @@ in }; config = { + _module.args.pkgs = import <nixpkgs> { inherit (config.nixpkgs) config; }; + }; } |
