Retire dotfiles-rebuild, switch to dm-pull-deploy push timer
- Drop modules/dotfiles-rebuild.nix and its imports in clan.nix; sunken-ship + phantom-ship no longer ship the legacy 15-min rebuild-from-git timer. - Add dm-pull-deploy-push systemd timer on sunken-ship: every 15min runs dm-send-deploy to announce origin/main rev via data-mesher gossip (sunken is the dm-pull-deploy push node). - Fix mulbo-pull service path: add openssh so 'git fetch' over an SSH remote stops failing with 'cannot run ssh'. - vps-relay authorized_keys: rename Mac key comment to mac-admin, add sunken-ship's actual ed25519 key for ZT mesh debugging. - home.nix: add cinny-desktop (Matrix client). - neovim: enable cursorline.
This commit is contained in:
parent
1b0eb5835d
commit
2e9441f367
7 changed files with 46 additions and 54 deletions
|
|
@ -231,6 +231,7 @@
|
|||
zed-editor
|
||||
code-cursor
|
||||
cursor-cli
|
||||
cinny-desktop # Matrix client (Tauri wrapper around the Cinny web app)
|
||||
dfu-util # USB DFU firmware flasher (Flipper Zero etc.)
|
||||
discord
|
||||
mapscii
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@
|
|||
# x86_64-linux builds here via ssh-ng://danny@sunken-ship-zt).
|
||||
nix.settings.trusted-users = [ "root" "danny" ];
|
||||
environment.systemPackages = with pkgs; [
|
||||
git # clone/bootstrap and dotfiles-rebuild timer
|
||||
git # clone/bootstrap, repo-pull timers, dm-pull-deploy push
|
||||
brightnessctl # manual backlight; replaces removed `light` from nixpkgs
|
||||
uxplay # AirPlay mirroring receiver
|
||||
alsa-utils # aplay, amixer, arecord for audio debugging
|
||||
|
|
@ -347,7 +347,10 @@
|
|||
# not in the repo, so they survive pulls.
|
||||
systemd.services.mulbo-pull = {
|
||||
description = "Pull mulbo repo and restart mulbo-server if changed";
|
||||
path = with pkgs; [ git systemd ];
|
||||
# openssh: `git fetch origin` over an SSH remote forks `ssh`; without
|
||||
# it git dies with "cannot run ssh: No such file or directory" and the
|
||||
# unit fails (shows up as system `degraded`).
|
||||
path = with pkgs; [ git openssh systemd ];
|
||||
environment = {
|
||||
GIT_CONFIG_COUNT = "1";
|
||||
GIT_CONFIG_KEY_0 = "safe.directory";
|
||||
|
|
@ -372,6 +375,33 @@
|
|||
timerConfig.RandomizedDelaySec = "2min";
|
||||
};
|
||||
|
||||
# dm-pull-deploy push automation. sunken-ship is the push node for the
|
||||
# clan dm-pull-deploy instance (wired in flake-modules/clan.nix), but
|
||||
# the upstream module only ships a manual `dm-send-deploy` binary — no
|
||||
# scheduler. This timer announces the latest origin/main rev over
|
||||
# data-mesher gossip; the watchers (dm-pull-deploy.path on sunken +
|
||||
# phantom) compare and only rebuild when the rev actually changes, so
|
||||
# re-announcing the same rev is a cheap no-op. This is the replacement
|
||||
# for the legacy dotfiles-rebuild pull timer (being retired).
|
||||
#
|
||||
# dm-send-deploy self-discovers the rev via `git ls-remote` and signs
|
||||
# with /run/secrets/vars/dm-pull-deploy-signing-key — needs root.
|
||||
systemd.services.dm-pull-deploy-push = {
|
||||
description = "Announce latest origin/main rev via data-mesher (dm-pull-deploy push)";
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "/run/current-system/sw/bin/dm-send-deploy";
|
||||
User = "root";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.timers.dm-pull-deploy-push = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig.OnCalendar = "*-*-* *:04/15:00"; # every 15 min, offset from the other pull timers
|
||||
timerConfig.RandomizedDelaySec = "2min";
|
||||
timerConfig.Persistent = true;
|
||||
};
|
||||
|
||||
# One-shot backfill: walks Navidrome's media_file, computes
|
||||
# (sha256, chromaprint) per file, populates mulbo-server's tracks_index
|
||||
# with the corresponding navidrome_track_id. Idempotent — existing rows
|
||||
|
|
@ -443,6 +473,8 @@
|
|||
};
|
||||
};
|
||||
|
||||
# Auto-rebuild service/timer + safe.directory provided by the
|
||||
# shared dotfiles-rebuild NixOS module (see nixos/modules/dotfiles-rebuild.nix).
|
||||
# Deploys now flow through clan dm-pull-deploy: the dm-pull-deploy-push
|
||||
# timer above announces origin/main, and the dm-pull-deploy.path watcher
|
||||
# rebuilds on change. The legacy pull-based dotfiles-rebuild module was
|
||||
# retired 2026-05-19.
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,8 +46,13 @@
|
|||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ];
|
||||
openssh.authorizedKeys.keys = [
|
||||
# Same pubkey used to reach sunken-ship; set at install via clan.
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKW/akfIiVU5o63YrTAJVZhMj7kXfYHOnXDtlpVFW7pf danny@sunken-ship"
|
||||
# Mac admin key (~/.ssh/id_ed25519_sunken_ship on the laptop — the
|
||||
# key the Mac uses to reach the fleet). Used for `clan machines
|
||||
# update vps-relay` from the Mac and at install via clan.
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKW/akfIiVU5o63YrTAJVZhMj7kXfYHOnXDtlpVFW7pf danny@mac-admin"
|
||||
# sunken-ship's own key, so the push node can SSH into vps-relay
|
||||
# over ZeroTier for mesh introspection / debugging.
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB9t4YAaoHvVouqp+qyFOq8o3SAtXMiAmjF6J0ldyx4g danny@sunken-ship"
|
||||
];
|
||||
};
|
||||
users.users.root.openssh.authorizedKeys.keys =
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@
|
|||
end
|
||||
|
||||
-- General options
|
||||
vim.opt.cursorline = true
|
||||
vim.opt.mouse = "a"
|
||||
vim.opt.listchars = { tab = "→ ", space = "·", nbsp = "␣", trail = "•", eol = "¶", precedes = "«", extends = "»" }
|
||||
vim.opt.clipboard:append("unnamedplus")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue