summaryrefslogtreecommitdiffstats
path: root/misc
AgeCommit message (Collapse)Author
2020-10-18Add some missing clean-filesEelco Dolstra
2020-10-09Add a zsh completion scriptregnat
Based on @clhodapp's suggestion in https://github.com/spwhitt/nix-zsh-completions/issues/32#issuecomment-705315356 and adapted to use the description of the completions
2020-10-09Add a description in the completion outputsregnat
Make nix output completions in the form `completion\tdescription`. This can't be used by bash (afaik), but other shells like zsh or fish can display it along the completion choices
2020-09-16Fix the nix-daemon Mac OS SSL CA certMarwan Aljubeh
Mac OS multi-user installations are currently broken because all requests made by nix-daemon to the binary cache fail with: ``` unable to download ... Problem with the SSL CA cert (path? access rights?) (77). ``` This change ensures that the nix-daemon knows where to find the SSL CA cert file. Fixes #2899 and #3261.
2020-06-04Fix completion script install nameEelco Dolstra
2020-05-11Bash completion: Don't break on ':'Eelco Dolstra
2020-05-10Add completion for pathsEelco Dolstra
2020-05-10nix: Implement basic bash completionEelco Dolstra
2019-10-09Make nix-daemon.plist less fragile on macOSDan Callahan
We're calling `wait4path` on the full, resolved `@bindir@/nix-daemon` path. That means we're hardcoding something like: /bin/wait4path /nix/store/zs9c5xhp3zv9p23qnjxp87nl5injsi1i-nix-2.3/bin/nix-daemon && /nix/var/nix/profiles/default/bin/nix-daemon That seems unnecessarily fragile. It might be better to wait4path on the path we intend to call.
2019-10-08Copy instead of linking launch agentMatthew Bauer
On Catalina, the /nix filesystem might not be mounted at start time. To avoid this service not starting, we need to keep the launch agent outside of the Nix store. A wait4pid will hold for our /nix dir to be mounted. Fixes #3125.
2019-09-03Merge pull request #3066 from matthewbauer/wait4pathEelco Dolstra
Use wait4path on org.nixos.nix-daemon.plist
2019-09-02Fix launchd program argsMatthew Bauer
launchd has some weird syntx. Apparently the program needs to be in the ProgramArguments, as Program appears to be ignored.
2019-08-27Use wait4path on org.nixos.nix-daemon.plistMatthew Bauer
When using a volume, the nix-daemon path may not exist. To avoid this issue, we must use the wait4path tool. This should solve one of the issues in multi-user on macOS Catalina.
2019-08-27nix-daemon.service: add install section.Piotr Szubiakowski
Signed-off-by: Piotr Szubiakowski <pszubiak@eso.org>
2019-02-09nix-daemon: add variable to disable fork safetyDaiderd Jordan
Since macOS 10.14 this has become an error, causing problems if the nix-daemon loads nix during substitution (this is a forked process). Workaround for #2523.
2018-06-21docker: move the docker file to https://github.com/NixOS/dockerPeter Simons
We have automated builds at https://hub.docker.com/r/nixos/nix/ now. The master branch of the "docker" repository is available as "latest". Branches that match the regular expression "^[0-9.]+$" are pushed to the tag that corresponds to their branch name. Other branches are ignored.
2018-06-06Dockerfile: 2.0.4Lorenzo Manacorda
2018-05-08docker readme: simplifyDomen Kožar
2018-05-08Dockerfile: 2.0.2Domen Kožar
2018-05-08Add README for dockerDomen Kožar
2018-05-08Dockerfile: update to 2.0.1Domen Kožar
2018-03-19Dockerfile: verify tar file with sha256sumBen Challenor
2018-03-18Dockerfile: 1.11.14 -> 2.0Ben Challenor
2018-02-28launchd: enable keepalive for the nix-daemon serviceDaiderd Jordan
Without this the daemon won't be restarted if the process ever dies, for example when sending a SIGHUP to reload nix.conf.
2017-10-07docker: ensure that the installation works for users other than 'root', tooPeter Simons
The path /root/.nix-profile is a sym-link to /nix/var/nix/profiles/default. The latter path, however, works for everyone while the former path works only for root, so we prefer the public path whenever possible.
2017-09-11docker: update to Nix 1.11.14Peter Simons
- Use the latest Nix version 1.11.14. - Attempts to download the Nix installation tarball from http://nixos.org redirect to https these days, which wget doesn't support unless OpenSSL is available. - Use addgroup and adduser commands to create the Nix build users. - Link the Nix profile script into /etc/profile.d, where it's run automatically. - Dropped installation of bash and tar. Neither tool is essential for running Nix. Use the command "docker build -t nix . && docker run -it --rm nix sh -" to build and run the Nix docker container.
2017-08-19Remove nix-mode.el from Nix.Matthew Bauer
This removes the file nix-mode.el from Nix. The file is now available within the repository https://github.com/NixOS/nix-mode. Fixes #662 Fixes #1040 Fixes #1054 Fixes #1055 Closes #1119 Fixes #1419 NOTE: all of the above should be fixed within NixOS/nix-mode. If one of those hasn’t please reopen within NixOS/nix-mode and not within NixOS/nix.
2017-06-12Provide a builtin default for $NIX_SSL_CERT_FILEEelco Dolstra
This is mostly to ensure that when Nix is started on macOS via a launchd service or sshd (for a remote build), it gets a certificate bundle.
2017-05-05Figure out the user's home directory if $HOME is not setEelco Dolstra
2017-04-29nix-daemon.service: set XDG_CONFIG_HOMEJörg Thalheim
Otherwise starting nix-daemon fails ● nix-daemon.service - Nix Daemon Loaded: loaded (/nix/store/mnf00a6gc55xl47smk0b32gmi7xpvlfp-nix-1.12pre5308_2f21d522/lib/systemd/system/nix-daemon.service; enabled; vendor preset: enabled) Drop-In: /nix/store/m2rgjp71n4kyp8j5fxgbrlv13scd5vvv-system-units/nix-daemon.service.d └─overrides.conf Active: failed (Result: exit-code) since Sat 2017-04-29 11:29:21 CEST; 9s ago Process: 7299 ExecStart=nix-daemon --daemon (code=exited, status=1/FAILURE) Main PID: 7299 (code=exited, status=1/FAILURE) CPU: 19ms ... systemd[1]: Started Nix Daemon. ... nix-daemon[7299]: error: $XDG_CONFIG_HOME and $HOME are not set ... systemd[1]: nix-daemon.service: Main process exited, code=exited, status=1/FAILURE ... systemd[1]: nix-daemon.service: Unit entered failed state. ... systemd[1]: nix-daemon.service: Failed with result 'exit-code'. ... systemd[1]: nix-daemon.service: Start request repeated too quickly. ... systemd[1]: Failed to start Nix Daemon. ... systemd[1]: nix-daemon.service: Failed with result 'exit-code'.
2017-03-11Dockerfile: 1.11.2 -> 1.11.7Domen Kožar
2017-03-05nix-daemon.plist: Set XDG_CACHE_HOMEShea Levy
2016-10-13SSL_CERT_FILE -> NIX_SSL_CERT_FILEEelco Dolstra
This prevents collisions with the "native" OpenSSL, in particular on OS X. Fixes #921.
2016-08-31nix-daemon.service: Set $XDG_CACHE_HOMEEelco Dolstra
Nix requires either $HOME or $XDG_CACHE_HOME to be set.
2016-08-12launchd: Set $SSL_CERT_FILEEelco Dolstra
Otherwise in particular https://cache.nixos.org won't work in the daemon.
2016-08-04Dockerfile: Add alpine dependencies (#1011)Aneesh Agrawal
* Dockerfile: add GNU tar native dependency `builtins.fetchTarball` requires GNU tar to be available in the $PATH in order to unpack the fetched tarball (there is a FIXME comment for this), which Alpine does not ship by default (it ships BusyBox tar). * Dockerfile: add GNU bash native dependency `nix-shell` defaults to invoking `bash` from the $PATH for the subshell. In theory this can be overriden with the NIX_BUILD_SHELL environment variable, but this does not work properly. `nix-shell` generates and passes a script (`$rcFile`) to be executed by the subshell which uses bashisms (`source` and `shopt`). Additionally, in interactive mode, `nix-shell` passes the `--rcfile` argument to the shell, which is another bashism. Because `bash` is thus de-facto required, add `bash` as a native package dependency to make it available for `nix-shell`.
2016-07-20Dockerfile: specify NIX_PATHDomen Kožar
2016-05-03Merge pull request #894 from adevress/systemV-supportEelco Dolstra
SystemV init file for BSD systems, old Linux distributions (RHEL 6) a…
2016-05-02SystemV init file for BSD systems, old Linux distributions (RHEL 6) and ↵Adrien Devresse
Linux dist without systemd
2016-05-01nix-mode: set syntax and font properties for multiline stringsThomas Tuegel
2016-03-16Dockerfile: 1.9 -> 1.11.2, add more usersDomen Kožar
2015-10-10emacs mode: match keywords on the start/end of symbolsPascal Wittmann
If keywords are matched on the start/end of words then keywords are also matched if they are surrounded by dashes or underscores. For example the keyword with is highlighted in geany-with-vte. When matching on the start/end of symbols the keyword is only highlighted if it is not part of an other identifier.
2015-07-17Add DockerfileJaka Hudoklin
2015-05-19Also remove misc/vim/README.mdEelco Dolstra
2015-05-19point to https://nixos.org/wiki/Vim_configuration insteadHoang Xuan Phu
2014-11-04TypoEelco Dolstra
2014-11-04Add a launchd configuration file to run nix-daemonEelco Dolstra
2014-09-17Derive Emacs nix-mode from prog-mode.Robert Helgesson
Emacs 24.1 introduced the notion of "basic major modes" and among these is prog-mode, see section "23.2.5 Basic Major Modes" in the Emacs manual. The prog-mode basic major mode is recommended as a base for derived major modes that are intended for editing source code.
2014-07-16Install systemd and Upstart stuff only on LinuxEelco Dolstra
2014-06-12Add autoloads, make code more concise & idiomaticSteve Purcell
- Use define-derived-mode to declare nix-mode - Use autoloads to ensure nix-mode is usable (and enabled) without needing `require` - Use set + make-local-variable instead of longer 2-step equivalent