refactor(deploy): rename system user lamassu → bitspire
System-level half of the lamassu → bitspire rebrand the rest of dev already did at the path / service / package layers. Touches user/group declarations, every systemd `User=` block, the udev rules filename, all chown calls in flake.nix + live.nix, the displayManager autoLogin user, the trusted-users nix entry, provision-atm.sh's ATM_USER, plus README + CLAUDE.md doc references. In-place migration for the Sintra dev unit (which auto-pulls dev at 04:00) lives in `system.activationScripts.bitspire-user-migration` and: - copies `/home/lamassu/.ssh/authorized_keys` → `/home/bitspire/` once, so SSH access survives the rename - recursively chowns `/var/lib/bitspire` to the new bitspire UID on every boot — cheap no-op once done, but covers the case where the data dir was written by the now-removed lamassu UID - leaves `/home/lamassu/` in place as evidence; operator can `rm -rf` after confirming bitspire login works Recovery path if the migration breaks SSH access: root key is still in configuration.nix:142-144 (padreug@gizmo), so ssh root@<host> works. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
1655b1db04
commit
264cc47e0c
9 changed files with 61 additions and 32 deletions
|
|
@ -139,7 +139,7 @@
|
|||
# Passwordless sudo for remote nixos-rebuild switch
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
||||
# Allow lamassu user to use nix commands + pull from aiolabs binary cache.
|
||||
# Allow bitspire user to use nix commands + pull from aiolabs binary cache.
|
||||
# max-jobs = 1: prefer substitution from the cache, but allow ONE
|
||||
# local build slot for tiny activation-time stitch derivations
|
||||
# (boot.json, system-units, X-Restart-Triggers, etc.) that are
|
||||
|
|
@ -160,7 +160,7 @@
|
|||
# the upgrade fails loudly instead of silently wedging the box
|
||||
# for an hour. Time-bounds the max-jobs=1 escape hatch.
|
||||
timeout = 60;
|
||||
trusted-users = [ "root" "lamassu" ];
|
||||
trusted-users = [ "root" "bitspire" ];
|
||||
substituters = [ "https://cache.nixos.org" "https://aiolabs.cachix.org" ];
|
||||
trusted-public-keys = [
|
||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||
|
|
@ -205,7 +205,7 @@
|
|||
DISPLAY=:0
|
||||
''} /var/lib/bitspire/.env
|
||||
chmod 600 /var/lib/bitspire/.env
|
||||
chown lamassu:lamassu /var/lib/bitspire/.env
|
||||
chown bitspire:bitspire /var/lib/bitspire/.env
|
||||
fi
|
||||
'';
|
||||
|
||||
|
|
@ -234,7 +234,7 @@
|
|||
before = [ "bitspire.service" ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "lamassu";
|
||||
User = "bitspire";
|
||||
Environment = "DISPLAY=:0";
|
||||
ExecStart = "${pkgs.bash}/bin/bash -c '${pkgs.xorg.xrandr}/bin/xrandr --output eDP-1 --off; sleep 1; ${pkgs.xorg.xrandr}/bin/xrandr --output eDP-1 --auto'";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue