summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/patches.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/system/patches.nix b/modules/system/patches.nix
index bb384e8..3b9d980 100644
--- a/modules/system/patches.nix
+++ b/modules/system/patches.nix
@@ -56,14 +56,14 @@ in
for f in $(ls /run/current-system/patches 2> /dev/null); do
if test ! -e "${config.system.build.patches}/patches/$f"; then
- patch --reverse --backup -d / -p1 < "/run/current-system/patches/$f" || true
+ patch --force --reverse --backup -d / -p1 < "/run/current-system/patches/$f" || true
fi
done
${concatMapStringsSep "\n" (f: ''
f="$(basename ${f})"
if ! patch --force --reverse --dry-run -d / -p1 < '${f}' &> /dev/null; then
- patch --forward --backup -d / -p1 < '${f}' || true
+ patch --force --forward --backup -d / -p1 < '${f}' || true
fi
'') cfg.patches}
'';