1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00
Commit graph

40 commits

Author SHA1 Message Date
Alice Carroll
d5dba1c6f5
refactor: rename environment.postBuild to environment.extraSetup 2024-08-17 02:50:56 +03:00
zowoq
e88eb66c2b mapAttrsFlatten -> mapAttrsToList
deprecated in 473e469d5a
2024-07-27 13:37:28 +10:00
Andrew Marshall
7f897008d4 environment: Adjust systemPath order to allow injecting in the middle
Previously, it was not possible to inject PATH entries between profiles
and the “default system” PATH entries. This confounds adding, e.g.
Homebrew on aarch64’s non-standard prefix as higher priority than the
builtin system paths, but lower than Nix profiles.

This is a backwards-incompatible change for some users, but should only
be so in the case a user used `mkOrder` with a value between 1000 (the
default priority) and 1200. Value of 1200 chosen as the same delta from
the default as just below in `environment.profiles` (which uses 800),
and mkAfter is 1500 so will still go after this.
2024-05-23 09:55:35 -04:00
Weijia Wang
def1e23be8 treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
Emily
e65131e69c treewide: convert all option docs to Markdown
This process was automated by [my fork of `nix-doc-munge`]; thanks
to @pennae for writing this tool! It automatically checks that the
resulting documentation doesn't change, although my fork loosens
this a little to ignore some irrelevant whitespace and typographical
differences.

As of this commit there is no DocBook remaining in the options
documentation.

You can play along at home if you want to reproduce this commit:

    $ NIX_PATH=nixpkgs=flake:nixpkgs/c1bca7fe84c646cfd4ebf3482c0e6317a0b13f22 \
      nix shell nixpkgs#coreutils \
      -c find . -name '*.nix' \
      -exec nix run github:emilazy/nix-doc-munge/0a7190f600027bf7baf6cb7139e4d69ac2f51062 \
      {} +

[my fork of `nix-doc-munge`]: https://github.com/emilazy/nix-doc-munge
2023-06-24 10:48:55 +01:00
Nathan Henrie
ed993c5038 Add system terminfo to TERMINFO_DIRS by default 2022-10-19 15:09:28 -06:00
Michael Hoang
f12f0f3095 environment: support installing terminfo files 2022-09-20 21:57:53 +10:00
Tianyao Chou
a3cab812ac add escape to shell aliases 2022-06-30 19:21:36 +02:00
Daiderd Jordan
44da835ac4
add forward compatibility for literalExample deprecation
Fixes #367
2021-10-23 15:06:42 +02:00
Daiderd Jordan
079db5db5b
don't set SHELL automatically based on programs.<shell>.enable 2020-10-25 16:37:02 +01:00
Daniel V
5796faef94 Set up XDG system environment variables sort of how they set them up
in nixos by appending them to the nix profiles
2020-05-11 06:56:21 -04:00
Wael M. Nasreddine
5e6570c07c
order the environment 2019-02-21 15:57:51 -08:00
Daiderd Jordan
2e525a93da
security.pki: add module to configure ca certificates
This makes NIX_SSL_CERT_FILE configurable and makes
/etc/ssl/certs/ca-certificates.crt available like nixos.
2019-01-15 21:55:08 +01:00
Andrew Childs
676ef10377 Unify environment configuration and don't run in child shells
This should enable `nix run` to work under shells like fish and zsh,
as well as making child shells not needlessly reset any environment
that should be inherited.

Implementation adapted from NixOS.
2018-10-25 01:00:52 +09:00
Daiderd Jordan
f473b21c9f
environment: add darwinConfig option to set darwin-config in NIX_PATH
This simplifies using a non default configuration.nix without requiring
a symlink or redefining NIX_PATH.

The nix.nixPath option only defines a default which means defining a value
will drop all of the defaults. This is because correct merge behaviour
isn't very clear for named entries.
2018-08-26 14:09:01 +02:00
Daiderd Jordan
f190254679
examples: remove nix-repl and nixUnstable references 2018-08-21 22:42:33 +02:00
Colin Barrett
a6cd3bb61f Port over the NixOS fish module 2017-10-15 23:26:16 -04:00
Daiderd Jordan
3efff52877
environment: don't link /lib by default 2017-10-07 12:59:10 +02:00
Daiderd Jordan
e8355cdd93
system-build: change type of setEnvironment and setAliases
On NixOS system.build.setEnvironment also is a writeText
2017-10-07 12:41:33 +02:00
Daiderd Jordan
a8b4770275
environment: include extraInit in set-environment script 2017-10-07 12:27:43 +02:00
Daiderd Jordan
af0579f4a1
system-path: fix type 2017-10-07 10:17:45 +02:00
Daiderd Jordan
91a6785102
nixpkgs: change loeOf to listOf 2017-10-06 19:57:47 +02:00
Daiderd Jordan
6da4eb0ffe
environment: use the default profile as a fallback 2017-05-25 12:51:59 +02:00
Daiderd Jordan
d5596d5df2
programs-info: add module and run install-info on system packages.
Fixes #25
2017-05-21 10:51:01 +02:00
Daiderd Jordan
1b6f56f5b8
environment: include /usr/sbin and /sbin in systemPath
Don't extend initial PATH adding extra entries should be done through
appending environment.systemPath or manually extending it with
environment.extraInit or similar options.
2017-05-15 19:46:34 +02:00
Daiderd Jordan
a4eb645d0d
launchd: allow string entries for serviceOptions.path
Fixes evaluation of khd.
2017-05-14 00:12:20 +02:00
Daiderd Jordan
a0f2ceb787
environment: don't use default for profiles
This makes it easier to add entries without having to add all of the
default values again.
2017-05-13 16:58:53 +02:00
Daiderd Jordan
ea179bf9bf Merge pull request #26 from clhodapp/fix/path-order
Don't put profiles in reverse-order in PATH
2017-05-13 16:57:52 +02:00
Daiderd Jordan
b6af291c84
add programs.man module
Note: this doesn't add man to systemPackages by default,
only man-old builds on darwin and the system version works fine.
2017-05-12 22:17:38 +02:00
Daiderd Jordan
1546ea0617
environment: add pathsToLink for system profile 2017-05-12 22:09:04 +02:00
Chris Hodapp
c8a04807eb Don't put profiles in reverse-order in PATH
Your user-specific profile should take precedence
over the system one. If I've gone out of my way
to install something into my personal profile, my
version should be used instead of the system's.
2017-05-12 00:47:47 -07:00
Chris Hodapp
b26a49ad24 Default outputs should include "man"
If you don't include "man", basic nix commands (e.g. nix-env)
basically have broken help/usage text, since they delegate to
calling man.
2017-05-12 00:42:34 -07:00
Daiderd Jordan
a0f56e5118
set NIX_SSL_CERT_FILE 2017-03-19 18:48:26 +01:00
Daiderd Jordan
d014ed2445
launchd: add command, path and environment options 2017-01-25 21:16:53 +01:00
Daiderd Jordan
590bd06ced
environment: set cacert variables by default 2017-01-05 23:30:26 +01:00
Daiderd Jordan
15f19af0bb
add environment.loginShell option 2016-12-18 14:04:31 +01:00
Daiderd Jordan
cf6d081c29
fix types for environment variables 2016-12-17 23:14:55 +01:00
Daiderd Jordan
2ad1229c71
add environment.profiles 2016-12-17 21:04:04 +01:00
Daiderd Jordan
125dcb48b0
add nix module 2016-12-15 13:26:22 +01:00
Daiderd Jordan
926395d628
reorganize modules 2016-11-06 22:38:31 +01:00