summaryrefslogtreecommitdiff
path: root/pkgs
AgeCommit message (Collapse)Author
2024-11-23Merge pull request #1173 from Enzime/push-rzlnwqmnznppMichael Hoang
nix-tools: set `meta.mainProgram`
2024-11-21installer: removeMichael Hoang
2024-11-21installer: move channel creation to READMEMichael Hoang
2024-11-21installer: move creating default configuration to READMEMichael Hoang
2024-11-18nix-tools: set `meta.mainProgram`Michael Hoang
2024-11-17uninstaller: check `nix-daemon` works after restoringMichael Hoang
2024-11-17uninstaller: fix restoring nix-daemon launchd daemonMichael Hoang
2024-11-16nix-daemon: enable by defaultMichael Hoang
Single user installs have been unsupported by the official Nix installer since 2.4.
2024-11-09installer: don't tell users to source bashrcMichael Hoang
Fixes #380
2024-11-07uninstaller: check `nix-daemon` was correctly reinstalledMichael Hoang
2024-11-07uninstaller: switch to `writeShellApplication`Michael Hoang
By not defining a `shellHook`, `nix-shell -A uninstaller` and `nix-shell -A uninstaller.check` no longer work.
2024-11-07uninstaller: restore `*.before-nix-darwin` filesMichael Hoang
Fixes https://github.com/LnL7/nix-darwin/issues/911 Fixes https://github.com/LnL7/nix-darwin/issues/912
2024-11-07uninstaller: reset any shells pointing to `/run/current-system/sw/bin`Michael Hoang
2024-11-07uninstaller: remove unnecessary attempt to delete `nix-daemon`Michael Hoang
Fixes https://github.com/LnL7/nix-darwin/issues/910
2024-11-07uninstaller: remove `/run` symlinkMichael Hoang
2024-11-03darwin-rebuild: do not resolve flake pathMichael Hoang
Backport of https://github.com/NixOS/nixpkgs/commit/c274d045ac254afe96b1f8139e974ada2c42059e Fixes #549
2024-11-03Back out "Add support for submodules in flakes"Michael Hoang
This backs out commit 5452c8c638b59b5d6b123d81d3fa6bad07d00617.
2024-10-27tests: fix negative asserts with `grep` not workingMichael Hoang
Using `grep -v` without `-z` will return 0 even if there is a match found as all the non-matching lines will be matched. Instead of using `grep -vqz`, `(! grep ...)` is more readable. The brackets are necessary as `! grep` will not trigger `set -e`[0], so we run it inside a subshell to use its non-zero exit code. [0]: https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#The-Set-Builtin
2024-10-25Merge pull request #1115 from PhilipBorgesen/align_usageMichael Hoang
darwin-rebuild: Align usage description with implementation
2024-10-25darwin-rebuild: Align usage description with implementationPhilip Børgesen
This change updates the usage description of darwin-rebuild.sh as follows: * Add options: --print-build-logs / -L --no-registries --commit-lock-file --no-write-lock-file --override-input * Specify that --no-flake and the flake related options are mutually exclusive. * Specify that --keep-going and -k are aliases. * Specify that --keep-failed and -K are aliases. * Correct the description of --update-input; only one value follows. The --no-build-hook argument remains undocumented, like for nix.
2024-10-23users: ensure Full Disk Access is granted before trying to delete usersMichael Hoang
2024-10-23darwin-rebuild: add comments explaining the custom `sudo` logicMichael Hoang
2024-09-11tools: fix darwin-rebuild changelogAntoine Cotten
The script returns early when $systemConfig is empty, which prevents the changelog from being displayed.
2024-07-13Set default flake directory as `/etc/nix-darwin`Michael Hoang
Backported from https://github.com/NixOS/nixpkgs/blob/9995a5d59c59fde96f4ad7d811a8ed832357440f/pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh#L349-L353
2024-05-18Move --offline to group of same behaviour flagsRubikoid
2024-05-07Fix helpRubikoid
2024-05-07Fix --offlineRubikoid
Add --substituters flag
2024-05-07Add offline flag to darwin-rebuild.shRubikoid
2024-03-06darwin-uninstaller: Fix when using nixpkgs.config.allowAliases = falseAndrew Marshall
2024-01-28Update darwin-rebuild.zsh-completionsThane Gill
Co-authored-by: Michael Hoang <Enzime@users.noreply.github.com>
2024-01-27Add zsh completions to darwin-rebuld by defaultThane Gill
2023-12-22darwin-rebuild: fix sudo invocation on High SierraRafael Kitover
The version of sudo on macOS 10.13 High Sierra does not support the `--preserve-env=LIST` option syntax, which is used here to preserve PATH. Override sudo with a shell function that checks for the availability of this option syntax, and do not pass PATH otherwise. Also move the prefix env command in the sudo invocations into the new sudo function. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
2023-11-16Install darwin-uninstall by default, which includes the 'empty' config it ↵Graham Christensen
switches to Co-Authored-By: Michael Hoang <enzime@users.noreply.github.com>
2023-11-09Update pkgs/nix-tools/darwin-rebuild.shRoman Novak
Co-authored-by: Michael Hoang <Enzime@users.noreply.github.com>
2023-11-06fix(#798): darwin-rebuild support for Cyberark EPMRoman Novak
restore sudo environment PATH when Cyberark EPM is setting secure_path in sudo config. Fixes LnL7/nix-darwin/issues/798
2023-09-25darwin-rebuild: add `-H` to sudo for `$systemConfig/activate`zowoq
2023-09-19Use LocalHostNameCarl Thomé
2023-08-13Update pkgs/darwin-installer/default.nixArvin Sevilla
Co-authored-by: Michael Hoang <Enzime@users.noreply.github.com>
2023-08-13chore(installer): capitalize the default option when reading user inputArvin Sevilla
2023-07-14Add `darwin-version` commandMichael Hoang
2023-07-12uninstaller: fix removing `/Applications/Nix Apps`Michael Hoang
2023-07-11uninstaller: remove `/Applications/Nix Apps`Michael Hoang
2023-07-11installer: match flaky installation logicMichael Hoang
2023-07-11Allow flaky installation with `darwin-rebuild`Michael Hoang
2023-07-11flake: add `packages.darwin-{option,rebuild}`Michael Hoang
2023-06-28feat(darwin-rebuild): support --refreshBernardo Meurer
This flag allows forcing remote flakes (e.g. `github:foobar/nix-config`) to be force-refreshed, which is required for quickly iterating/activating a remote config.
2023-06-25fix darwin-option descriptionsDaiderd Jordan
Also drops the eval hacks in favour of jq.
2023-06-09darwin-installer: fix `/run` not getting createdMichael Hoang
2023-04-29fix: in URI use proper groupsKonrad Malik
2023-04-29add '://' to built flake uriKonrad Malik