Commit graph

447 commits

Author SHA1 Message Date
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
Ana Hobden 80026e1e2f
Add pre install/uninstall checks to planners (#561)
* Add pre install/uninstall checks to planners

* Refine checks

* fmt

* Make sure checks run before install/uninstall described as well

* Make nix-darwin error expected

* Fix import

* Fix import

* Report expected errors properly

* format
2023-07-12 09:08:42 -07:00
Ana Hobden d076888f88
Tweak self-test reporting to make it more clear it may not be a total failure (#559) 2023-07-10 11:33:53 -07:00
Ana Hobden e5390faf1a
Offer better messaging around user/group creation (#557)
* Offer better messaging around user/group creation

* fmt
2023-07-06 08:24:35 -07:00
Ana Hobden edb72882fd
Add tracing around the Github Actions reinstall issue (#541) 2023-07-05 13:39:01 -07:00
Ana Hobden ba841149e7
launchctl bootstrap fails with disabled in a dirty state (#555)
* Handle a MacOS service being disabled during bootstrap

* Handle service disabled in configure_init_service

* Fixup missed line

* Fix import

* Don't deref pointer

* Tweak detection and re-enablement
2023-07-05 13:38:50 -07:00
Ana Hobden f8b3e29751
Remove atty dependency (#554) 2023-07-05 11:53:19 -07:00
Ana Hobden 675d93c644
Support create_directory paths being an existing mount (#547)
* Support create_directory paths being an existing mount

* Tidy up after install even on mounts

* Repair steam deck test

* Fixup some nits
2023-07-05 09:11:57 -07:00
Ana Hobden 9c915b3f6a
bugfix: Let Mac users specify encryption directly (#546) 2023-06-30 12:43:02 -07:00
Ana Hobden 3586457624
Turn off auto optimise store on mac (#542)
* Disable auto-optimise-store on Mac

* Add comment on why we disable something

* fmt

* Auto-allocate-uids is linux only too
2023-06-28 21:11:16 +00:00
Luc Perkins c38de2dbc5
Remove local eclint derivation (#537) 2023-06-28 10:40:44 -07:00
Ana Hobden b3a371bed1
v0.10.1-unreleased (#536) 2023-06-28 07:55:00 -07:00
Ana Hobden e3cb3725cd
Release v0.10.0 (#534) 2023-06-27 10:28:36 -07:00
Ana Hobden 5524d4546b
Fix devshell on i686 (#533) 2023-06-27 06:54:29 -07:00
Cole Helbling 9baee72ef7
ci: use our cacher action (#532)
* ci: use our cacher action

* ci: drop unnecessary `with: github-token`

Co-authored-by: Graham Christensen <graham@grahamc.com>

* ci: pin cacher action to v1

---------

Co-authored-by: Graham Christensen <graham@grahamc.com>
2023-06-26 14:41:20 -07:00
Ana Hobden 4bfd6c2547
Use ssl-cert-file config (#527)
* Use ssl-cert-file config

* Include mac change

* Use canonical ssl cert file

* Don't set ssl-cert-file in shell profiles

* Canonicalize in diagnostics

* Optionally read cert file
2023-06-26 10:36:46 -07:00
Ana Hobden 0b6d723db3
Uninstalling should change directory if in nix (#526)
* Change directory during uninstall if run from /nix

* Include log message
2023-06-23 11:42:18 -07:00
Luc Perkins 122a4bfdf0
Add flake checker action to GHA lints (#515)
* Add flake checker action to CI

* Bump action version to v4

* Remove outdated NIxpkgs check

Co-authored-by: Ana Hobden <operator@hoverbear.org>

---------

Co-authored-by: Ana Hobden <operator@hoverbear.org>
2023-06-23 17:30:33 +00:00
Ana Hobden a962b3390b
Restore user creation on Mac (#524)
* Restore user creation on Mac

* Repair MacOS build

* Pass clone not borrow

* Fixup double group create

* Add some links
2023-06-23 10:29:47 -07:00
Travis A. Everett db316614f2
swap fortune for hello (#525)
This seems to have fixed the flaky macOS test issue that I
imagine led to disabling that set of tests here.
2023-06-23 08:47:40 -07:00
Matthew Kenigsberg 47f2630702
Fix darwin devShell (#514)
* Move Linux only dependencies to isLinux block

SELinux tools are Linux specific

* Add apple_sdk Security framework to devShell

Otherwise cargo build fails with:
ld: framework not found Security
2023-06-14 13:41:10 -07:00
Ana Hobden b29a7585bd
Add self test functionality (#506)
* Add self test functionality

* Fix mac ci

* Improve erorr messaging

* i32 support

* Fixup self-test comment

* Fix review nits
2023-06-08 08:09:04 -07:00