summaryrefslogtreecommitdiff
path: root/pkgs/nix-tools
AgeCommit message (Collapse)Author
2024-11-18nix-tools: set `meta.mainProgram`Michael 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-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-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-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-07-14Add `darwin-version` commandMichael 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-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-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ć
2021-10-23add forward compatibility for literalExample deprecationDaiderd Jordan
Fixes #367
2021-07-09fix: use short hostname as flake attribute nameŁukasz Niemier
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
2020-10-21always prefix flake with darwinConfigurationsDaiderd Jordan
2020-10-21handle --print-build-logs for flakesDaiderd Jordan
2020-10-21add --impure flag for flakesDaiderd Jordan
2020-10-21add example flake and support --flake in darwin-rebuildDaiderd Jordan
2020-02-03darwin-rebuild: allow empty argumentsDaiderd Jordan
The wrapper already handles whitespace properly and empty values are useful for certain flags like --option builders ''.
2019-07-01darwin-rebuild: fix checkDaiderd Jordan
2019-06-05darwin-rebuild: fix activate without an existing profileDaiderd Jordan
2019-06-05darwin-rebuild: add activate commandDaiderd Jordan
This command activates the current system again, mostly useful when the system was built on another host and substituted.
2019-06-05nix-script: removeDaiderd Jordan
2019-06-05nixos-rebuild: change default editor to viDaiderd Jordan