summaryrefslogtreecommitdiffstats
path: root/krops.nix
Commit message (Collapse)AuthorAgeFilesLines
* krops.nix: deliver enstate submissions to enstate.providersDirtv6 hours1-8/+10
| | | | | Its directory for providers, as the host's configuration names it, on a ramfs that is never written to swap, instead of /run/enstate/krops.
* krops.nix: refuse the enstate action while the profile waits for a reboottv33 hours1-0/+7
| | | | | | The running generation would plan the submissions, and refuse what only the profile's generation has a slot for; the reboot would find nothing to take.
* krops.nix: leave what waits to the reboot, after a deploy with boottv34 hours1-19/+21
| | | | | | | A deploy that finds the profile up to date took what waits with enstate --migrate, under the running generation, also when the profile waits for a reboot: what only the new generation has a slot for got refused, and the reboot found nothing to take.
* krops.nix: show what enstate says needs attentiontv34 hours1-0/+15
| | | | | | | After the switch, or the migration without one: a submission the running generation refused (at boot, say), or a required slot without an entry, fails the deploy, with enstate --status' report. Not for boot, whose generation doesn't run yet.
* krops.nix: forget the submissions a refused check leavestv34 hours1-4/+22
| | | | | They would wait in enstate's incoming directory, and refuse every later switch to a generation that refuses them, too.
* krops.nix: check before boot, tootv34 hours1-10/+22
| | | | | | | | enstate's check runs for boot now (enstate 34ac5db), and runs before the profile is set only by the separate check. For boot, that's enstate's check alone, run as its module runs it: NixOS' check of switch inhibitors skips boot, but not when switch-to-configuration runs it as check, and would refuse a deploy with boot for what boot is for.
* krops.nix: no enstate source lists for a minimal hosttv34 hours1-2/+3
| | | | Its configuration has no enstate options, so deploying oxi failed.
* krops.nix: declare the location secrets for enstatetv42 hours1-1/+3
|
* krops.nix: deliver enstate submissions by populatetv43 hours1-21/+19
| | | | | | | A pipe source with directory = true, whose command packs into the directory populate gives it, in a populate run of its own with the target's /run/enstate/krops as target path, instead of mktemp, rsync and ssh by hand. It needs krops' populate at 9cbe2fa or later.
* krops.nix: keep enstate submissions in /run/enstate/kropstv43 hours1-18/+15
| | | | | | | Next to enstate's views, by channel name, and kept after a deploy, so the next one sends only what changed (rsync --checksum; --delete for a channel that's gone). They get stamped when moved into the incoming directory, still only after the build.
* krops.nix: put enstate submissions in place in one steptv44 hours1-1/+7
| | | | | | From /run to /var/lib/enstate, mv copies, so a submission was briefly half there in the incoming directory. Now each is copied under a dot name, which enstate skips, and renamed.
* krops.nix: submit enstate state with remote builds, tootv47 hours1-22/+33
| | | | | | | As with builds on the target: packed here once the system is copied, moved to the incoming directory on the target before activating it. The packing runs in a subshell, as the remote build's own trap keeps the builder's GC root until the end.
* krops.nix: add the action enstatetv47 hours1-10/+37
| | | | | It delivers only the host's enstate submissions, packed as for deploy, and the running system takes them, without populating or building.
* krops.nix: submit enstate state when deployingtv47 hours1-0/+46
| | | | | | | | | The deploying host evaluates the host's enstate.sourceLists, packs each channel's submission with hrm's enstate, in memory, and copies it to the target's memory; once the system is built, it goes to enstate's incoming directory, where the switch's pre-switch check plans it and enstate.service takes it; without a switch, enstate --migrate takes it. Builds on the target only, for now.
* enstate: add as a sourcetv47 hours1-0/+1
| | | | | For its NixOS module, which every host imports and only hosts with enstate.enable use.
* krops.nix: check before setting the system profiletv2 days1-0/+9
| | | | | | | | switch-to-configuration runs the pre-switch checks only after nix-env has made the new system the profile, so a refused switch left it to be booted next time. Only before a switch: check runs the checks as for a switch, and with boot, those that skip boot would run. The switch itself then skips them (NIXOS_NO_CHECK), so they don't run twice.
* krops.nix: deliver any source from a checkouttv2 days1-12/+33
| | | | | | checkouts, a comma-separated list of NAME or NAME=PATH, replaces the mobile-nixos argument: each named source comes from the directory, as it is, ~/sync/src/NAME without a path.
* krops.nix: mobile-nixos only for qitv2 days1-7/+8
|
* tincr: pin in sources.jsontv3 days1-9/+2
| | | | | | With the hash, as the package fetches it into the store, and without a branch, as a new revision needs a new plan. krops.nix reads the same entry for the NixOS module, instead of importing the package file.
* krops.nix: pin mobile-nixos in sources.jsontv3 days1-6/+2
| | | | Without a branch: it moves when a change in the fork is ready.
* krops.nix: pin nixpkgs in sources.jsontv3 days1-4/+1
| | | | | Each channel is an entry of its own, nixpkgs/CHANNEL, which a host chooses by spec.nixpkgs. Replaces nixpkgs.json.
* krops.nix: pin crate2nix in sources.jsontv3 days1-4/+12
| | | | | One file for the pins of the git sources, so a tool can update them. An entry has url, rev and date, and branch if it follows one.
* krops.nix: add crate2nixtv4 days1-0/+4
|
* krops.nix: add mobile-nixostv4 days1-4/+16
| | | | | A directory instead of the pinned revision, with whatever is in it, to try a kernel without committing, pushing and pinning it first.
* mobile-nixos: keep qi's display working after blankingtv5 days1-1/+1
|
* krops.nix: add bootimg, fastboot.boot, fastboot.flashtv5 days1-98/+157
| | | | | | They build a host's boot image on a builder like its system, with GC roots of its own, and fetch it as a file; the fastboot actions then start it once, or write it and reboot.
* krops.nix: deliver every secrets source to the targettv5 days1-2/+3
|
* krops.nix: evaluate as on the targettv5 days1-25/+50
| | | | | | | | | | A host with builders gets evaluated here, but with its sources mounted where the target has them, so that paths like <secrets> are the target's, as if it had evaluated itself, and nothing needs to be told where the secrets are. This host's checkouts get mounted there as well, instead of linked: a link would lead to this host's path, and one into the target's path, where this host has its own sources, to itself.
* mobile-nixos: sdm845 kernel 6.11.0 -> 6.18.2, without modulestv6 days1-1/+1
|
* mobile-nixos: name the kernel file the system expectstv6 days1-1/+1
|
* mobile-nixos: don't run stage-1 libxkbcommon's teststv6 days1-1/+1
|
* mobile-nixos: use the fork with the sdm845 6.11 kerneltv6 days1-2/+2
| | | | Upstream is at 6.4 and has no RMNET, which mobile data needs.
* krops.nix: evaluate with the builder's systemtv6 days1-2/+5
|
* krops.nix: choose the builder before evaluatingtv6 days1-13/+13
|
* krops.nix: evaluate with the target's secret directorytv6 days1-0/+1
| | | | A host with builders is evaluated on the deploying host, without <secrets>, which stockholm resolves for krebs.secret.directory.
* krops.nix: let populate create the evaluation directorytv6 days1-2/+1
| | | | It failed for a host's first remote build, with a missing sentinel file.
* mobile-nixos: add as a sourcetv6 days1-0/+4
|
* tincr: install the man pagestv7 days1-1/+5
|
* tincr: add as a sourcetv7 days1-0/+5
|
* krops.nix: leave out secrets for hosts without themtv7 days1-1/+2
|
* krops.nix: pass the derivation, not its GC root, to the buildertv9 days1-0/+2
|
* krops.nix: take only numbers as portstv9 days1-3/+7
|
* krops.nix: quote the commands for the builder's shelltv9 days1-4/+6
|
* krops.nix: keep builders' GC roots only while deployingtv9 days1-10/+17
|
* krops.nix: builders as targets, with the path for their GC rootstv9 days1-21/+44
|
* krops.nix: link or shallow-clone git sources for evaluationtv9 days1-28/+29
|
* krops.nix: build on builderstv9 days1-23/+265
|
* krops.nix: add switch argumenttv9 days1-11/+30
|
* krops: diff environments in the diff action tootv2026-11-181-2/+2
| | | | | | | Without --environment, nix-diff skips the environment of a derivation when one of its inputs changed. A unit whose X-Restart-Triggers input changes then hides its own changes, e.g. a new RefreshOnReload= next to a changed config file.
* krops: diff derivations in the diff actiontv2026-11-181-0/+7
| | | | | | | diff-closures only shows version changes and size changes of 8 KiB or more, so configuration changes go unseen. nix-diff shows them. It comes from nix-shell -p with the target's nixpkgs if the target doesn't have it.