summaryrefslogtreecommitdiff
path: root/pkgs
AgeCommit message (Collapse)Author
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
2023-01-09Merge pull request #550 from n8henrie/issue_549Domen Kožar
Add support for submodules in flakes
2022-12-14Add support for submodules in flakesNathan Henrie
Fixes https://github.com/LnL7/nix-darwin/issues/549
2022-12-08darwin-rebuild: fixing logic error in if statementsaccarosium
2022-12-08darwin-rebuild: use `--no-link` for flake buildssaccarosium
2022-10-10Fix darwin rebuild fails with flake and dry-runLightQuantum
2022-08-29Add `-H` to `sudo nix-env [...]` to deal with warningMalo Bourgon
After NixOS/nix#6676, the following warning is displayed when running `darwin-rebuild switch`: warning: $HOME ('/Users/jamie') is not owned by you, falling back to the one defined in the 'passwd' file.
2022-08-16Add .nix-defexpr to NIX_PATH the way the NixOS module doesMalo Bourgon
2022-08-16Move build user options to `nix` module to improve overlap with NixOSMalo Bourgon
Also add `config.ids` like in NixOS.
2022-03-26Merge pull request #340 from hauleth/fix/use-short-hostnameDomen Kožar
Use short hostname as flake attribute name
2022-02-04Don't reset experimental featuresSandro Stikić
2022-01-11move installer into a separate fileDomen Kožar
2021-12-21fix dependence on apfs.util exit codeTravis A. Everett
apfs.util (or at least it's newer -t flag) has bad exit code semantics and will return non-zero codes for both success and errors. Closes #401 and most-likely fixes #378 as well
2021-12-21uninstaller: copy services instead of symlinkingDaiderd Jordan
2021-10-23add forward compatibility for literalExample deprecationDaiderd Jordan
Fixes #367
2021-08-10uninstaller: also remove `~/Applications/Nix Apps`Kid
2021-07-09fix: use short hostname as flake attribute nameŁukasz Niemier
2021-04-06Merge pull request #308 from hardselius/masterDaiderd Jordan
Fix nix flake info error
2021-03-23Add nix flags to subcommand testMartin Hardselius
This change removes the need for having experimental-features = nix-command flakes in nix.conf. It should also work outside of flake directories.
2021-03-22Make nix flake info fix backwards compatibleMartin Hardselius
This change handles previous nix versions by testing for the presence of the `metadata` subcommand and falling back on the `info` subcommand if it does not exist.
2021-03-21Fix nix flake info errorMartin Hardselius
Fixes "error: 'info' is not a recognised command'" Issue: #307
2021-02-23darwin-[un]installer: Don't reference deprecated stdenv.libMario Rodas
`stdenv.lib` has been deprecated, and the correct approach is to use `lib` directly through `pkgs.lib`.
2020-12-22installer: silence apfs.util outputDaiderd Jordan
Passing incorrect flags prints help output to stdout so silence everything. Fixes #264
2020-12-21installer: move channel setup out of activationDaiderd Jordan
Fixes #234