summary refs log tree commit diff
path: root/nixos/modules/system/etc
Commit message (Collapse)AuthorAge
* Merge remote-tracking branch 'upstream/master' into stagingTuomas Tynkkynen2016-10-02
|\
| * etc module: optionSet -> submoduleEric Sagnes2016-09-13
| |
* | Add stdenvNoCCEelco Dolstra2016-09-29
|/ | | | | | | This is a standard environment that doesn't contain a C/C++ compiler. This is mostly to prevent trivial builders like runCommand and substituteAll from pulling in gcc for simple configuration changes on NixOS.
* etc: remove obsolete directoriesAlexey Shmalko2016-07-25
| | | | | | | | | | | | | | | | | | | | | This patch adds handling of a directory becoming a symlink in /etc. Before this patch, the directory wasn't removed and then symlinking failed, which caused directory not being updated at all. The idea for the patch goes to @abbradar at https://github.com/NixOS/nixpkgs/issues/16978#issuecomment-232921903: > A heuristic idea for this -- a function `isStatic :: Path -> Bool`: > > * if path `/etc/foo` is a file, return True iff it's a symlink to `/etc/static/foo`. > * if path is a directory, return True iff for all items in it `isStatic` is True. > > On any conflicts, if old path is static, it's safe to replace and/or > delete stale. Otherwise make a backup and notify the user via a > journal entry and console output. The only difference here -- it will not replace user configs. This also fixes https://github.com/NixOS/nixpkgs/issues/16978.
* Update `etc` example to not use a real config fileGraham Christensen2016-04-27
| | | A user noticed the example for `hosts`, took the `mode` permissions literally, and ended up with surprising behavior on their system. Updating the documentation to not reference a real config file which might have real permissions requirements.
* etc: Use a friendlier name than "etc-file"Eelco Dolstra2015-12-30
|
* Set ‘allowSubstitutes = false’ on various derivationsEelco Dolstra2015-07-09
| | | | | This reduces the number of binary cache requests. See https://github.com/NixOS/nix/commit/b64988bb3585478676585a0f0aecbcf4e11d4432.
* setup-etc.pl: Fail when symlink/rename failswmertens2014-10-06
| | | When atomicSymlink can't symlink or rename, it should return failure. This is then handled with `... or die` and `... or warn`
* setup-etc.pl: Keep track of copied filesEelco Dolstra2014-07-25
| | | | | | | | | We now track copied files in /etc/.clean. This is important, because otherwise files that are removed from environment.etc will not actually be removed from the file system. In particular, changing users.extraUsers.<user>.openssh.authorizedKeys.keys to an empty list would not cause /etc/ssh/authorized_keys.d/<user> to be removed, which was a security issue.
* Rewrite ‘with pkgs.lib’ -> ‘with lib’Eelco Dolstra2014-04-14
| | | | | | | | Using pkgs.lib on the spine of module evaluation is problematic because the pkgs argument depends on the result of module evaluation. To prevent an infinite recursion, pkgs and some of the modules are evaluated twice, which is inefficient. Using ‘with lib’ prevents this problem.
* etc: uid/gid support for copied filesAustin Seipp2014-02-23
| | | | Signed-off-by: Austin Seipp <aseipp@pobox.com>
* Make /etc/localtime a direct symlink to the zoneinfo fileEelco Dolstra2014-01-06
| | | | | | | Some programs (notably the Java Runtime Environment) expect to be able to extract the name of the time zone from the target of the /etc/localtime symlink. That doesn't work if /etc/localtime is a symlink to /etc/static/localtime. So make it a direct symlink.
* Add lots of missing option typesEelco Dolstra2013-10-30
|
* Clean up some option examplesEelco Dolstra2013-10-30
|
* Fix bogus mkOption typesEelco Dolstra2013-10-28
| | | | | Among others, systemd unit options were not being type-checked because of this. mkOption should really check its arguments better...
* Move all of NixOS to nixos/ in preparation of the repository mergeEelco Dolstra2013-10-10