nixpkgs/nixos/modules
Alexey Shmalko fe9cabedf0
etc: remove obsolete directories
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.
2016-07-25 15:50:53 +03:00
..
config Merge pull request #15840 from anderspapitto/pulse-jack 2016-07-16 13:26:39 +02:00
hardware nixos ati_unfree: auto-switch xorg to fglrxComat 2016-05-23 10:12:44 +02:00
i18n/input-method fcitx: refactor (#16858) 2016-07-11 17:50:22 +02:00
installer nixos-version: fix syntax error and add -h (#16906) 2016-07-13 09:11:32 +02:00
misc nixos/elasticsearch: Set a group on the user 2016-07-01 18:21:42 +02:00
profiles documentation: fix start display-manager command 2016-07-04 10:25:31 +02:00
programs nixos/bash: enable colors during completion 2016-07-09 20:51:31 +01:00
security grsecurity module: tweak lockTunables option description 2016-07-16 11:11:35 +02:00
services nixos/compton: add user service (#16652) 2016-07-17 02:25:38 +02:00
system etc: remove obsolete directories 2016-07-25 15:50:53 +03:00
tasks Merge branch 'early-kbd' into staging 2016-07-13 03:56:07 +03:00
testing KDE test: Bump kdm start timeout 2016-05-27 11:22:27 +02:00
virtualisation Update 16.03 AMIs 2016-07-12 17:26:29 +02:00
module-list.nix nixos/compton: add user service (#16652) 2016-07-17 02:25:38 +02:00
rename.nix nixos: rewrite the grsecurity module 2016-06-14 03:38:12 +02:00