system.patches
Set of patches to apply to /.
This can modify everything so use with caution.
Useful for safely changing system files. Unlike the etc module this won't remove or modify files with unexpected content.
- Type
list of absolute path- Default
[ ]- Example
[ (pkgs.writeText "bashrc.patch" ''' --- a/etc/bashrc +++ b/etc/bashrc @@ -8,3 +8,5 @@ shopt -s checkwinsize [ -r "/etc/bashrc_$TERM_PROGRAM" ] && . "/etc/bashrc_$TERM_PROGRAM" + +if test -e /etc/static/bashrc; then . /etc/static/bashrc; fi ''') ]- Declared
- <nix-darwin/modules/system/patches.nix>