summaryrefslogtreecommitdiffstats
path: root/krops.nix
Commit message (Collapse)AuthorAgeFilesLines
* krops.nix: check before boot, tootv23 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 hosttv23 hours1-2/+3
| | | | Its configuration has no enstate options, so deploying oxi failed.
* krops.nix: declare the location secrets for enstatetv31 hours1-1/+3
|
* krops.nix: deliver enstate submissions by populatetv33 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/kropstv33 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 steptv34 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, tootv36 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 enstatetv36 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 deployingtv37 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 sourcetv37 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 profiletv38 hours1-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 checkouttv47 hours1-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 crate2nixtv3 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 blankingtv4 days1-1/+1
|
* krops.nix: add bootimg, fastboot.boot, fastboot.flashtv4 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 buildertv8 days1-0/+2
|
* krops.nix: take only numbers as portstv8 days1-3/+7
|
* krops.nix: quote the commands for the builder's shelltv8 days1-4/+6
|
* krops.nix: keep builders' GC roots only while deployingtv8 days1-10/+17
|
* krops.nix: builders as targets, with the path for their GC rootstv8 days1-21/+44
|
* krops.nix: link or shallow-clone git sources for evaluationtv8 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 tootv14 days1-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 actiontv14 days1-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.
* krops: add diff actiontv14 days1-1/+14
| | | | | | diff builds the system on the target like deploy, then shows how its closure differs from the running system's and which units switching would stop, start, restart, or reload.
* krops.nix: read nixpkgs and target from systems/*/spec.nixtv2026-11-141-3/+8
|
* krops.nix: inittv2026-11-091-0/+85