1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00
nix-darwin/modules/system
Marwan Aljubeh e62b83a934
Fix system.patches
Currently, `system.patches` doesn't work because it will attempt to first detect if the patch has already been applied by checking if it can be applied in reverse.

However, when that happens, `patch` detects that the supplied patch is incorrectly reversed and attempts to ask the user if they want to "Ignore -R":

```
Unreversed (or previously applied) patch detected!  Ignore -R? [y]
```

Because the output is piped to `/dev/null` the user will basically see nothing and `darwin-rebuild switch` will hang until the user presses "Enter" (possibly to check if the terminal is frozen). At which point, patch will ignore the --reverse and exit successfully, preventing the patch from being applied at all.

This change fixes that bug by using `--force` which tells patch that we know what we're doing and prevents it from prompting the user if they want to ignore `--reverse`.
2023-03-07 12:53:20 +00:00
..
defaults Merge pull request #452 from psm14/mouse-scaling 2022-12-16 13:07:17 +00:00
activation-scripts.nix Change option name and switch to using activation script 2022-06-30 13:32:46 -07:00
applications.nix applications: Drop store prefix to generalize 2022-09-13 14:57:50 +02:00
checks.nix Add .nix-defexpr to NIX_PATH the way the NixOS module does 2022-08-16 17:41:08 -07:00
default.nix system: add patches module 2020-05-29 21:29:20 +02:00
defaults-write.nix #517: custom preferences for 'defaults' can be specified 2022-10-24 13:12:54 +01:00
etc.nix rename runCommandNoCC 2022-09-25 14:12:08 -04:00
flake-overrides.nix disable NIX_PATH checks when using flakes 2020-10-25 12:56:39 +01:00
keyboard.nix add new option - system.keyboard.swapLeftCommandAndLeftAlt 2020-10-23 22:47:38 +08:00
launchd.nix rename runCommandNoCC 2022-09-25 14:12:08 -04:00
patches.nix Fix system.patches 2023-03-07 12:53:20 +00:00
shells.nix add forward compatibility for literalExample deprecation 2021-10-23 15:06:42 +02:00
version.nix add flake versions 2020-10-21 18:30:56 +02:00