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.
16 lines
460 B
Nix
16 lines
460 B
Nix
# EC2 only. Physical machines must use the separate nixos host target.
|
|
{ modulesPath, ... }:
|
|
{
|
|
imports = [
|
|
# Keep the image's EC2 boot, storage, metadata, SSH and SSM integration.
|
|
"${modulesPath}/virtualisation/amazon-image.nix"
|
|
./common.nix
|
|
];
|
|
|
|
# Keep the existing deployment path; ownership/update policy is shared.
|
|
systemd.services.nixos-update.environment = {
|
|
NIXOS_CONFIG_REPO = "/etc/nixos";
|
|
NIXOS_UPDATE_HOST = "dev";
|
|
};
|
|
}
|