diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2016-12-11 13:58:57 +0100 |
|---|---|---|
| committer | Daiderd Jordan <daiderd@gmail.com> | 2016-12-11 13:58:57 +0100 |
| commit | ea047db86f67f4eafd10eab6b94f23b4386fdc11 (patch) | |
| tree | 7ec57c2ddbc1acf67efac84f1b0349975651ccc4 /modules | |
| parent | b270f2fdc5c60e186ad120e69caca4cb9478fdf4 (diff) | |
add link to examples
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/examples/simple.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/modules/examples/simple.nix b/modules/examples/simple.nix new file mode 100644 index 0000000..1dbe3f1 --- /dev/null +++ b/modules/examples/simple.nix @@ -0,0 +1,28 @@ +{ config, lib, pkgs, ... }: +{ + + # 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 + ]; + + environment.etc."bashrc".text = '' + # /etc/bashrc: DO NOT EDIT -- this file has been generated automatically. + # This file is read for interactive shells. + + # Only execute this file once per shell. + if [ -n "$__ETC_BASHRC_SOURCED" -o -n "$NOSYSBASHRC" ]; then return; fi + __ETC_BASHRC_SOURCED=1 + + export NIX_PATH=nixpkgs=$HOME/.nix-defexpr/nixpkgs:darwin=$HOME/.nix-defexpr/darwin:darwin-config=$HOME/.nixpkgs/darwin-config.nix:$NIX_PATH + + export PATH=${config.environment.systemPath}''${PATH:+:$PATH} + + ${config.system.build.setEnvironment} + ${config.system.build.setAliases} + ''; +} |
