refactor: share workstation setup and boot-staged updates

Use dev-owned checkouts and one update policy on both hosts. Keep only hardware and deployment identity in host modules, use the same SDDM/UWSM workstation module in the VM, and install a host-configured manual switch command with lock regression tests.
This commit is contained in:
OpenAI Coding Assistant
2026-09-05 23:52:51 -05:00
parent 209f4d8bda
commit 4893fcfec0
18 changed files with 358 additions and 247 deletions
+4 -4
View File
@@ -1,4 +1,5 @@
{
config,
inputs,
lib,
pkgs,
@@ -11,11 +12,10 @@ let
};
in
{
# Keep each host's existing interface/DHCP owner. On EC2 this is dhcpcd;
# NixOS wires its resolvconf hook to resolved's compatibility interface.
# NetworkManager owns local DNS on workstations. With dhcpcd (EC2),
# NixOS wires resolvconf to resolved. Preserve both hosts' existing behavior.
services.resolved = {
# Physical hosts can retain their existing DNS setup during migration.
enable = lib.mkDefault true;
enable = lib.mkDefault (!config.networking.networkmanager.enable);
settings.Resolve = {
LLMNR = false;
MulticastDNS = false;