summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* krops.nix: check before boot, tootv18 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.
* enstate: take the slots' sources and the source lists from its moduletv18 hours2-39/+3
| | | | Upstream has hrm's options now, in the same shape.
* krops.nix: no enstate source lists for a minimal hosttv18 hours1-2/+3
| | | | Its configuration has no enstate options, so deploying oxi failed.
* retiolum: name the key by the location secretstv26 hours1-3/+2
|
* krops.nix: declare the location secrets for enstatetv26 hours1-1/+3
|
* enstate: let a slot's source be a locationtv26 hours1-2/+6
|
* enstate: validators in a sandboxtv27 hours1-2/+2
| | | | The pinned commit, rewritten since, is no longer on enstate's master.
* krops.nix: deliver enstate submissions by populatetv28 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/kropstv28 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.
* enstate: say its main programtv28 hours1-0/+1
| | | | lib.getExe, which enstate's module uses, warned without it.
* crate2nix-package: take metatv28 hours1-5/+10
|
* krops.nix: put enstate submissions in place in one steptv29 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.
* tincr: take the man pages from the source as builttv30 hours1-6/+5
| | | | As enstate's completion: with ~/sync/src/tincr, from that checkout.
* enstate: take the bash completion from the source as builttv30 hours1-7/+4
| | | | | | With ~/sync/src/enstate, the package was built from it, but the completion came from inputs.enstate, on the deploying host its own /var/src/enstate, from before the completion existed.
* crate2nix-package: let extraPaths see the source as builttv30 hours1-3/+5
| | | | | extraPaths may be a function from { src }, the source after pkgs/rust replaced it with a checkout in ~/sync/src, if there is one.
* enstate: install the bash completiontv30 hours2-5/+16
| | | | From the source, which has it since 0a32f2f.
* crate2nix-package: join extraPaths to any packagetv30 hours1-11/+13
| | | | | Not only to the members of a workspace: a root crate's build gets them, too. Packages without extraPaths build as before.
* systemd-credentials: make the options part of systemd.servicestv31 hours9-69/+60
| | | | | | | | | | | | systemd.services.<name>.restartIfCredentialsChange and reloadIfCredentialsChange replace hrm.systemd.services.<name>.…; the alias for stockholm's krebs.systemd.services now points there. Units can't be made from config.systemd.services itself, so the trigger services become two templates, credentials-restart@ and credentials-reload@, which call systemctl themselves; only the path units remain per service, by their old names. Without comparing checksums any more: the path units fire when a credential is written, and nothing rewrites one unchanged.
* lib: add debug, debugIf, prettytv31 hours1-1/+21
| | | | pkgs/rust uses them.
* krops.nix: submit enstate state with remote builds, tootv31 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 enstatetv31 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.
* ru: take retiolum's key from enstatetv31 hours2-1/+38
| | | | | | | configs/retiolum.nix takes it from enstate wherever enstate is enabled, as application/x-tinc-private-key; algorithm=ed25519, a type of hrm's own, with a validator, and names its source: the host's entry in the passage store, unless the host names another.
* krops.nix: submit enstate state when deployingtv32 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: name each slot's sourcetv32 hours1-2/+35
| | | | | | | | enstate.channels.<channel>.slots.<slot>.source, in enstate's source syntax, run on the deploying host; enstate.sourceLists gathers them per channel, complete if every slot of the channel names a source, for the deploying host to evaluate. Shared configs set sources with lib.mkDefault, for hosts to override.
* enstate: build with hrm's crate2nix helpertv32 hours3-2/+10
| | | | | | From the populated source, as the NixOS module, so both are of the same revision; with the source's Cargo.json if it has one, else from its Cargo.lock. The package set gets the inputs for it.
* crate2nix-package: find git dependencies in their repositoriestv32 hours1-2/+14
| | | | | | build-from-json builds a git dependency from the root of its repository, so enstate's config, which lives in continuum's repository, got continuum's own sources.
* enstate: add as a sourcetv32 hours5-0/+15
| | | | | For its NixOS module, which every host imports and only hosts with enstate.enable use.
* krops.nix: check before setting the system profiletv33 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.
* default.nix: provide hrm's package set as pkgstv35 hours2-0/+9
| | | | | From legacy.nix's legacyPackages, nixpkgs with hrm's overlays, e.g. nix-build -A pkgs.crate2nix.
* krops.nix: deliver any source from a checkouttv41 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 qitv43 hours1-7/+8
|
* update-sources: inittv3 days1-0/+58
| | | | | | Moves the entries of sources.json that follow a branch to its head, or the named ones. It refuses entries pinned by hand, and ones with a hash, which it can't compute.
* tincr: pin in sources.jsontv3 days3-11/+11
| | | | | | 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 days2-6/+7
| | | | Without a branch: it moves when a change in the fork is ready.
* krops.nix: pin nixpkgs in sources.jsontv3 days3-14/+13
| | | | | 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 days2-4/+20
| | | | | 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.
* ne: follow nixos-26.05-smalltv3 days2-0/+5
| | | | | Security fixes arrive there sooner, and ne needs nothing that the small channel's builds leave out of the binary cache.
* configs: drop get and pushtv3 days1-2/+0
| | | | | get's source is gone with ni, and push asks a stockholm that no longer answers.
* configs: drop ovh-zonetv3 days1-1/+0
|
* configs: drop hashPasswordtv3 days1-1/+0
| | | | mkpasswd -m sha-512, which every system has, does the same.
* xoutinfo, with-tmpdir: fetch from cgit.krebsco.detv3 days2-2/+2
| | | | ni is gone.
* ff: take libtv3 days1-1/+1
|
* kpaste: inittv3 days1-0/+32
| | | | configs/default.nix installs it.
* krops.nix: add crate2nixtv3 days1-0/+4
|
* crate2nix: add the programtv3 days1-1/+1
| | | | | | pkgs.crate2nix was only the two library parts of the crate2nix source; now it is the program built from that source, with them as attributes, so the generator and build-from-json are of the same revision.
* ru: keep the MX Anywhere 3's wheel at whole detentstv3 days2-0/+19
| | | | | | hid-logitech-hidpp switches the wheel to high resolution whenever the mouse connects, so after each resume, and then it scrolls at the touch of a finger. logid switches it back each time.
* qi: keep wvkbd running with the sway sessiontv3 days1-8/+5
| | | | | Hidden, and shown and hidden by signal, so it appears at once and takes the display from sway's environment.
* qi: run lisgd with the sway sessiontv3 days1-14/+16
| | | | | | As a user service of sway-session.target, which NixOS' sway starts from /etc/sway/config.d, instead of a script for the user's sway config to call.
* qi: compile the kernel with ccache where the builder has onetv4 days1-6/+26
| | | | | | The wrapped compiler uses /var/cache/ccache if the build can write there, and plain compilation otherwise, so the kernel still builds on a builder without it.
* zu: offer builds a ccachetv4 days1-0/+3
| | | | | In /var/cache/ccache, which builds see in their sandbox; a build has to ask for it, by a stdenv with ccache.