Commit graph

518 commits

Author SHA1 Message Date
Ana Hobden 2dd40810fb
Fix exit code inconsistency (#684) 2023-10-23 13:52:42 -07:00
Ana Hobden c79dcb91ae
Release v0.14.0 (#679) 2023-10-18 10:18:59 -07:00
Graham Christensen 32dcdb7550
Make our Nix installation immune to macOS upgrades (#672)
* Add cargo-watch

* clippy: the borrowed expression implements the required traits

* clippy: expression creates a reference which is immediately dereferenced by the compiler

* clippy: redundant closure

* clippy: this if-then-else expression returns a bool literal

* clippy: explicit call to .into_iter() in function argument accepting IntoIterator

* Clippy: an implementation of From is preferred since it gives you Into<_> for free where the reverse isn't true

* Support cargo building on a mac

* Create a nix-hook service on macos to inject the shell at startup

* Introduce nix-installe restore-shell to fix the init scripts, called by the nix-hook plist on every login

* Wait for /nix to be there, and restart the hook until it works

* Back to run-at-load hoping that works

* Revert "Back to run-at-load hoping that works"

This reverts commit cccb8bcd971e296fecc0a2dba4f1101795bcd5ba.

It starts too early, fails, and then aborts. When it fails,
launchd says the service failed to initialize and that the system
is read-only.

* nits

* rename to repair

* Handle --no-modify-profile

* fmt

---------

Co-authored-by: Ana Hobden <operator@hoverbear.org>
2023-10-16 11:50:33 -07:00
Daniel Flanagan 5e06d6fcd2
Update ssl-cert-file docs (#671) 2023-10-10 09:21:22 -07:00
Ana Hobden 201fd4a0a7
Release v0.13.1 (#666) 2023-10-04 09:08:02 -07:00
Ana Hobden 917c0e89e7
Use Nix 2.17.0 (#665) 2023-10-03 19:03:44 +00:00
Ana Hobden 5eedbab041
Update nix-config-parser (#664) 2023-10-03 18:09:37 +00:00
Graham Christensen 95045cf8c0
flake-compat: use flakehub (#663) 2023-10-03 10:47:17 -07:00
Ana Hobden b68cf8b56c
Upgrade to Nix 2.18.1 (#661) 2023-10-03 10:07:35 -07:00
Ana Hobden 25ed45fc1b
Unmount apfs volumes before deleting them (#662) 2023-10-03 10:07:17 -07:00
Ana Hobden d01e1b820c
Release v0.13.0 (#652) 2023-09-28 17:02:45 -07:00
Ana Hobden 042873d7d6
Reintroduce 640, 638, 627 (#651)
* Reintroduce 640, 638, 627

* fmt
2023-09-28 22:58:31 +00:00
Ana Hobden b0bdd3ddef
Revert "Release v0.12.1 (#649)" (#650)
This reverts commit af06724a5e.
2023-09-28 22:35:57 +00:00
Ana Hobden af06724a5e
Release v0.12.1 (#649) 2023-09-28 14:35:35 -07:00
Ana Hobden fc6d611285
Revert "Make nix.conf changes deterministic (#620)" (#648)
* Revert "Make nix.conf changes deterministic (#620)"

This reverts commit 05571a4990.

* fmt

* Prod ci
2023-09-28 13:53:14 -07:00
Ana Hobden 3c7297e6ab
v0.12.1-unreleased (#644)
* v0.12.0-unreleased

* v0.12.1-unreleased...
2023-09-27 15:01:58 +00:00
Ana Hobden aed05e9a5c
Release v0.12.0 (#641) 2023-09-25 13:36:51 -07:00
Ana Hobden ff6ee246ae
Tweak nix-build-user-count default in all places (#643) 2023-09-25 12:43:45 -07:00
Ana Hobden da7e44e40e
Fixup VM tests (#642) 2023-09-25 08:43:11 -07:00
Ana Hobden 6bee48c11e
Enable repl-flake experimental feature (#640)
* Enable repl-flake experimental feature

* fmt
2023-09-22 12:06:42 -07:00
Ana Hobden 1da69eef4a
Plan prompts for sudo (#639)
* Plan prompts for sudo

* clippy/fmt
2023-09-22 18:08:01 +00:00
Ana Hobden 8911329beb
Upgrade to Nix 2.18 (#637) 2023-09-22 10:45:23 -07:00
Ana Hobden 7669045865
Disable auto-allocate-uids on Linux too (#638)
* Disable auto-allocate-uids on Linux too

* Fix clippy/fmt
2023-09-22 10:44:40 -07:00
Ana Hobden abfde74d1f
Add support for URLs or paths in --nix-package-url and --extra-conf (#634)
* Add support for URLs or paths in --nix-package-url and --extra-conf

* fmt

* Into a mod with you, tests!
2023-09-20 19:10:56 +00:00
Graham Christensen 60e5fff623
Support user-defined diagnostics attribution (#635)
* Switch to flakehub

* Diagnostics: support user-defined attribution.

Allows a user to specify an additional value to associate their diagnostics with that value. nix-installer doesn't generate or store these values, and most users have no need for it.

* Respond to feedback
2023-09-20 11:23:23 -07:00
Ana Hobden 1c103edb90
Set max-jobs in nix.conf (#627) 2023-09-13 17:38:40 +00:00
Ana Hobden 05571a4990
Make nix.conf changes deterministic (#620)
* Make nix.conf changes deterministic

* Add mac fixture

* Warn/error if user settings don't match our needs

* Repair mac fixture

* fmt

* clipster

* Tidy up some feedback

* fmt

* resolve some nits
2023-09-13 17:02:05 +00:00
Ana Hobden 0cd1d4bb03
Fix uninstall instructions (#631) 2023-09-13 09:56:00 -07:00
Ana Hobden b3dcf07f58
Check for file existence before attempting to open it (#626)
* Check for file existence before attempting to open it

* Fixup
2023-09-13 09:55:44 -07:00
Ana Hobden dd36129aa2
Improve --help (#624) 2023-09-13 09:52:41 -07:00
Ana Hobden dd6edfb5eb
Uninvert logic (#623) 2023-09-13 09:38:42 -07:00
Miguel 34d0b7e4f0
Add Upgrading section to README.md (#598)
* Add Upgrading section to README.md

* Change upgrading note README.md

* Change upgrading section at README.md

Remove note.
Add explanation of which version will be installed.

* Use an h3 instead

* A bit less detail...

---------

Co-authored-by: Ana Hobden <operator@hoverbear.org>
2023-09-06 11:20:37 -07:00
Ana Hobden d7412ba096
Readme cutificiation (#618)
* Engage README cutification subroutine

* Trimming
2023-09-06 08:12:47 -07:00
Ana Hobden 8395b40223
Bump dependencies (#619) 2023-09-01 08:28:25 -07:00
Graham Christensen 974e65d331
Update README.md a bit. (#616) 2023-08-29 14:14:47 +00:00
Graham Christensen 1575695e7b
Language and readme update (#612)
Language and readme update
2023-08-22 21:14:41 -04:00
Ana Hobden 329861feca
Release v0.11.0 (#602) 2023-08-14 12:08:33 -07:00
Ana Hobden 72bc65b2ab
Enable clippy on CI (#574)
* Enable clippy on CI

* Use rustc in check-clippy...
2023-08-14 10:00:34 -07:00
Ana Hobden b870f97c0e
Improve the message when security delete-generic-password is required (#570)
* Improve the message when security delete-generic-password is required

* Spelling

* Use sudo in recommendation
2023-08-10 17:42:22 +00:00
Ana Hobden 5e68cf127b
Check versions on uninstall for safety (#579) 2023-08-10 10:23:07 -07:00
Martin Wimpress c31535a824
Nix 2.15.0 -> Nix 2.17.0 (#597) 2023-08-03 08:16:06 -07:00
Ana Hobden 55cbf41a00
Make self-test errors a warning only (#587) 2023-07-25 11:17:52 -07:00
Ana Hobden ff20fc04b3
Fix the Mac CI with Silverblue (#591) 2023-07-24 11:44:28 -07:00
Hofer-Julian e84fd2bed9
Add support for ostree-based Linux distributions (#586)
* Add support for ostree-based Linux distributions

Fixes #389
I've tested this planner on Fedora Silverblue and Endless OS

* Stop duplicating check functions

* Remove `init` cli flag
2023-07-24 11:10:20 -07:00
Ana Hobden a049e52fd8
Teach installer about Clear Linux (#581) 2023-07-24 10:43:10 -07:00
Martin Wimpress 4d1c6cb9e0
DS-970: Add Magic Nix Cache and other workflow changes (#569)
* DS-970: Add Magic Nix Cache and other workflow changes

 An assortment of GitHub Workflow changes, potentially including:

- Enable DeterminateSystems/magic-nix-cache-action@main
- Reference all DeterminateSystems actions via @main
- Make update.yaml consistent across repos
- Remove unnecessary github-token: from nix-installer-action
- Update actions/checkout@v2 to actions/checkout@v3

* ci: clearly name steps in update.yml
2023-07-21 09:30:09 -07:00
Ana Hobden 3ad209cc0d
Create GITHUB_PATH with 777 mode (#568) 2023-07-17 10:45:22 -07:00
Hofer-Julian 90dc4b93ad
Remove unneeded lifetime (#573) 2023-07-17 08:40:10 -07:00
Hofer-Julian c3fa6e9623
Fix most clippy warnings (#572)
The only remaining is at `NixInstallerSubcommand`

See https://rust-lang.github.io/rust-clippy/master/index.html#/large_enum_variant
2023-07-17 08:34:46 -07:00
Ana Hobden 79ab8731fa
Disable steam deck CI until #566 (#571) 2023-07-14 21:40:39 +00:00