summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* systemd-credentials: make the options part of systemd.servicestv9 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, prettytv10 hours1-1/+21
| | | | pkgs/rust uses them.
* krops.nix: submit enstate state with remote builds, tootv10 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 enstatetv10 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 enstatetv10 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 deployingtv10 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 sourcetv10 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 helpertv10 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 repositoriestv10 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 sourcetv10 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 profiletv12 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 pkgstv13 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 checkouttv20 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 qitv22 hours1-7/+8
|
* update-sources: inittv44 hours1-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.jsontv45 hours3-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.jsontv45 hours2-6/+7
| | | | Without a branch: it moves when a change in the fork is ready.
* krops.nix: pin nixpkgs in sources.jsontv45 hours3-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.jsontv45 hours2-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-smalltv47 hours2-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 pushtv2 days1-2/+0
| | | | | get's source is gone with ni, and push asks a stockholm that no longer answers.
* configs: drop ovh-zonetv2 days1-1/+0
|
* configs: drop hashPasswordtv2 days1-1/+0
| | | | mkpasswd -m sha-512, which every system has, does the same.
* xoutinfo, with-tmpdir: fetch from cgit.krebsco.detv2 days2-2/+2
| | | | ni is gone.
* ff: take libtv2 days1-1/+1
|
* kpaste: inittv2 days1-0/+32
| | | | configs/default.nix installs it.
* krops.nix: add crate2nixtv2 days1-0/+4
|
* crate2nix: add the programtv2 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 detentstv2 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 sessiontv2 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 sessiontv2 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 onetv3 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 ccachetv3 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.
* krops.nix: add mobile-nixostv3 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.
* qi: offer the firmware where newer kernels look for ittv3 days1-0/+5
| | | | | 7.1's device tree names qcom/sdm845/OnePlus/enchilada and qca/OnePlus/enchilada, 6.18's the oneplus6 directories.
* qi: load the regulatory database once the root is theretv3 days1-0/+10
| | | | | cfg80211 is built in, looks for regulatory.db at boot, finds none and stays with the world domain, whatever country gets set later.
* qi: set the wireless regulatory domain to DEtv3 days1-0/+1
|
* qi: don't tell the kernel where modprobe istv3 days1-0/+1
| | | | | A kernel without modules has no /proc/sys/kernel/modprobe, so the activation script failed there.
* iptables: translate by the system that buildstv3 days1-4/+11
| | | | | | The translation to nft is text, and iptables-restore-translate crashes under emulation ("Failed to initialize nft: Protocol not supported"), as for qi, built on zu.
* qi: enable hrm.nftablestv3 days1-0/+2
|
* qi: suspend on a short press of the power keytv3 days1-1/+1
|
* zu: write dirty pages back less oftentv3 days1-0/+5
|
* zu: use the latest kerneltv3 days1-1/+3
|
* zu: let plugdev use Logitech devicestv3 days1-0/+7
|
* zu: unlock its disk over sshtv3 days2-0/+2
|
* zu: add wiregrilltv3 days1-0/+1
|
* zu: serve its store as a binary cachetv3 days1-0/+1
|
* zu: add bluetoothtv3 days1-0/+1
|
* zu: enable hrm.nftablestv3 days1-0/+2
|
* zu: use networkd, with DHCP on eth0 and wlan0tv3 days1-1/+11
|