Commit graph

304 commits

Author SHA1 Message Date
Ana Hobden 700496be3e
Bump deps (#86) 2022-12-02 08:20:42 -08:00
Ana Hobden ae37842a0d
Add Steam Deck Support (#34)
* Init Steam Deck support

* Improve systemd units

* Handle stopping nix-daemon.service before stopping mount

* Better handle being in a sysext

* Add some install directions

* Add a KDE autostart script

* Tidy up uninstall

* Use stop/disable instead of disable --now

* Fixup a double-disable

* Repair some defaults

* Tidy up services

* Make ci test steam deck planner

* Delete bonus line

* Use newer image

* Get steam-deck working hopefully

* Create steamos-readonly mock

* Make stub of steamos-readonly

* Use sudo for chmod

* Attempt CI fix

* Don't add deck group

* A more clever method

* We have a new method and the CI can be cleaned a bit

* Brazenly disable sandbox on the deck ci

* Extra-conf takes vec

* Dump lsblk mount

* An even more clever method

* More debugging symbols

* More debugging symbols

* Even more debugging

* probe for issues

* Get specific with permissions and ownership (for ci)

* We are now way overboard on debugging symbols

* Specify permissions on created home stub

* Allow specifying persistence

* Cleanup debugging bits

* Fixup persistence path

* Work out some better linking in units

* units don't need executable

* Tidy

* Delint

* Remove a note from readme

* Github actions seems to have build the wrong checkout?

* Doctest repair

* Don't create directory twice

* Restore missing doc comments

Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
2022-12-02 07:31:15 -08:00
Ana Hobden 0e2f27713f
Make nix-install.sh script point at a binary (#77)
* Make nix-install.sh script point at a binary

* feedback suggestions
2022-12-02 07:30:32 -08:00
Ana Hobden 017bcaf1f6
Add skipped option to ActionState (#74)
* Make plans versioned

* Delint

* speeeeeeeeling

* remove file that was dead

* Flesh out docs and improve public API

* Speeling

* Fixups

* Fix doctests

* Do a better job with actionstate

* Add some more docs

* Fix doctest

* Make CLI stuff optional

* Touchup

* Speeling

* add skipped to ActionState
2022-12-02 06:58:25 -08:00
Ana Hobden 4134f7af02
Add buildkite job for harmonic (#78)
* Add buildkite job for harmonic

* Follow newline rules

* Specify nix
2022-12-02 06:57:55 -08:00
Ana Hobden c39bf0a510
Flesh out docs and tidy up public API substantially (#67)
* Make plans versioned

* Delint

* speeeeeeeeling

* remove file that was dead

* Flesh out docs and improve public API

* Speeling

* Fixups

* Fix doctests

* Do a better job with actionstate

* Add some more docs

* Fix doctest

* Make CLI stuff optional

* Touchup

* Speeling
2022-11-28 22:57:35 +00:00
Ana Hobden f1d12149de
improve the output of some errors and plans (#66)
* improve the output of some errors and plans

* speeling
2022-11-25 11:50:21 -08:00
Ana Hobden 7cc71f1ccd
Make plans versioned (#62)
* Make plans versioned

* Delint

* speeeeeeeeling

* remove file that was dead
2022-11-25 11:46:38 -08:00
Ana Hobden ad44b85c97
Use process groups with tokio (also crate bump) (#63)
* Use process groups with tokio (also flake/crate bump)

* Use pgid0

* Maybe this checkout has a non-broken curl on mac

* Don't update flake at all
2022-11-25 08:02:00 -08:00
Ana Hobden 38ac180052
Tidy tracing (#57)
* Tidy tracing

* Forgot a few changes

* Remove more boilerplate

* Repair Plan::describe_revert

* More valid default settings

* fmt

* Use correct execute/revert calls

* Split up Linux Daemon disable and stop

* Detect state and act on it

* Fixup pathes

* Add a missing step to the mac bits

* Unload instead of disable

* Prune out again

* Squelch some stdout

* Clean lint

* Better log for no-delete-directory case

* Even more verbose messages on CreateDirectory

* Less broken code

* Use try_execute where it should be used

* Final tweaks

* Add some docs
2022-11-23 09:18:38 -08:00
Ana Hobden 7255c7e5a1
Split up Linux Daemon disable and stop (#60)
* Split up Linux Daemon disable and stop

* Detect state and act on it

* Fixup pathes

* Handle linked
2022-11-21 12:54:32 -08:00
Ana Hobden b06ad289fc
More valid default settings (#59) 2022-11-21 10:50:12 -08:00
Ana Hobden a87f1f997c
Fixup lack of default param (#55) 2022-11-16 21:11:38 +00:00
Ana Hobden d5757e68bd
Update flake/cargo deps (#56) 2022-11-16 21:11:14 +00:00
Ana Hobden db722fd2b9
Attempt a cache (#54)
* Attempt a cache -- for fun

* Correct path

* Don't cache lints

* Remove bonus args

* Delete bonus line

* Use newer image

* Use non pwd store relocation

* No steam deck job

* Change artifact behavior slightly

* Roundabout fetching of the binary

* Fixup path

* Fixup bad job id
2022-11-16 21:08:42 +00:00
Ana Hobden 0ba6ffe32c
Touchup nix-install.sh (#53)
* Remove rustup's help from the nix script

* Handle --no-confirm with no tty
2022-11-16 11:36:47 -08:00
Ana Hobden 6f64bb0092
Detect if nix is installed (#51)
* Add Nix installed detection

* Call nix-env --version instead
2022-11-15 08:22:51 -08:00
Ana Hobden 2dcda0a801
Merge pull request #46 from DeterminateSystems/hoverbear/ds-431-ctrlc-should-be-handled-and-terminate-us
Handle signals and user stdin more gracefully
2022-11-14 13:37:52 -08:00
Ana Hobden 9fe3e9ba41
Merge pull request #52 from DeterminateSystems/hoverbear/ds-444-trim-up-ci
Compress some runner jobs
2022-11-14 12:14:50 -08:00
Ana Hobden 35774325d8 links -> lints 2022-11-14 09:57:04 -08:00
Ana Hobden 021dfaf92b Remove unused 2022-11-14 09:47:00 -08:00
Ana Hobden d3dc8f3c97 Some unsaved change 2022-11-14 08:54:43 -08:00
Ana Hobden 49b22b451b
Merge pull request #50 from DeterminateSystems/hoverbear/ds-441-detect-nixos
Planner error if on NixOS
2022-11-14 08:53:50 -08:00
Ana Hobden 4732f8cd11 Rename jobs 2022-11-14 08:45:41 -08:00
Ana Hobden 15f44b34b3 Note about why this method is valid 2022-11-14 08:33:10 -08:00
Ana Hobden 5ee1389eca Compress some runner jobs 2022-11-14 08:31:31 -08:00
Ana Hobden ffaee2669d Merge branch 'main' into hoverbear/ds-441-detect-nixos 2022-11-10 11:04:43 -08:00
Ana Hobden b61e16faed Merge branch 'main' into hoverbear/ds-431-ctrlc-should-be-handled-and-terminate-us 2022-11-10 11:04:29 -08:00
Ana Hobden 0771130b9c
Merge pull request #49 from DeterminateSystems/hoverbear/ds-440-use-github-token-in-actions
Use a github token in extra-conf
2022-11-10 11:04:08 -08:00
Ana Hobden 91f286a37f Planner error if on NixOS 2022-11-10 10:46:48 -08:00
Ana Hobden c94fad6c3c Use a github token in extra-conf 2022-11-10 10:23:00 -08:00
Ana Hobden 6123d778fe Merge branch 'main' into hoverbear/ds-431-ctrlc-should-be-handled-and-terminate-us 2022-11-10 09:43:38 -08:00
Ana Hobden 673464ede7
Merge pull request #31 from DeterminateSystems/nix-mac-encrypted-volume
Nix Mac encrypted volume support
2022-11-10 09:08:07 -08:00
Ana Hobden 86fba9d442
Merge pull request #45 from DeterminateSystems/hoverbear/ds-436-tidy-up-plan-install-ux
Tidy up plan / install UX
2022-11-10 09:07:18 -08:00
Ana Hobden 835b8f82a0 Speeling 2022-11-10 09:04:41 -08:00
Ana Hobden 8c77b6eb38 Merge branch 'main' into hoverbear/ds-431-ctrlc-should-be-handled-and-terminate-us 2022-11-10 08:55:44 -08:00
Ana Hobden fb70f9d21b Merge branch 'main' into hoverbear/ds-436-tidy-up-plan-install-ux 2022-11-10 08:49:32 -08:00
Ana Hobden b81ec5f11f Include warning messages on noops for mac 2022-11-10 08:46:31 -08:00
Ana Hobden daf4fdc47b
Merge pull request #44 from DeterminateSystems/hoverbear/ds-435-check-if-running-as-root
Check if running as root during install and uninstall
2022-11-10 08:43:35 -08:00
Ana Hobden 1e518cab9f Merge branch 'main' into nix-mac-encrypted-volume 2022-11-10 08:40:55 -08:00
Ana Hobden a77cfc6d0c Include bare harmonic install command 2022-11-10 08:36:07 -08:00
Ana Hobden 5c1be32a08 Merge branch 'main' into hoverbear/ds-436-tidy-up-plan-install-ux 2022-11-10 08:32:20 -08:00
Ana Hobden 0c6102d96f Merge branch 'main' into hoverbear/ds-435-check-if-running-as-root 2022-11-10 08:25:35 -08:00
Ana Hobden 392d98f876
Merge pull request #47 from DeterminateSystems/spacekookie/refactor-actions
Refactoring actions/ part 2
2022-11-10 07:20:10 -08:00
Katharina Fey 24a38ff454 cargo fmt 2022-11-10 16:08:47 +01:00
Katharina Fey e98827d5ae Restructure common actions into common and base
Base actions are those that don't depend on another action to execute.
They mostly map to "very simple" OS operations like creating a
directory or user.  Base actions MUST be multi-platform compatible.
Common actions may then use any set of base actions or other common
actions.  Base actions MUST NOT depend on other base actions.
2022-11-10 15:54:12 +01:00
Katharina Fey 706ecccaa3 Fix flake.nix descriptor 2022-11-10 15:42:11 +01:00
Ana Hobden 460c0ba8c2
Merge pull request #39 from DeterminateSystems/hoverbear/ds-411-install-should-detect-existing
Install can detect existing /nix/receipt.json
2022-11-09 15:43:15 -08:00
Ana Hobden 6ff452420b Merge branch 'main' into hoverbear/ds-411-install-should-detect-existing 2022-11-09 15:23:45 -08:00
Ana Hobden 942c652fc2 Handle signals and user stdin more gracefully 2022-11-09 15:19:32 -08:00