3.4 KiB
type, status, project, tags
| type | status | project | tags | ||||
|---|---|---|---|---|---|---|---|
| plan | completed | nixos |
|
Implementation Plan: Decommission Legacy Desktop Derivation
Goal Description
Decommission and remove the legacy desktop host configuration (nixosConfigurations.desktop and hosts/desktop/) from the repository.
Now that homelab services (homeserver.nix, traefik-deployments.nix, dynu.nix, SOPS secrets) have been completely stabilized on the dedicated server host, and the active workstation environment is running on laptop, the legacy dual-mode desktop derivation is obsolete and can be cleanly decommissioned.
User Review Required
Important
Branch Isolation: All modifications and deletions will take place on a dedicated branch
refactor/decommission-desktopbranched offmain, allowing effortless rollback or recovery at any time.
Warning
Host Scope: Deleting
hosts/desktop/removes:
hosts/desktop/configuration.nix&specialisation.serverhosts/desktop/hardware-configuration.nixhosts/desktop/home.nix&hosts/desktop/config/hypr/- Legacy duplicated homelab files (
homeserver.nix,traefik-deployments.nix,dynu.nix,monitor.py,secrets.yaml)All homelab functionality already exists independently in
hosts/server/.
Proposed Changes
1. Branch Creation
- Create and switch to
refactor/decommission-desktop.
2. Flake Configuration
[MODIFY] flake.nix
- Remove
nixosConfigurations.desktopblock (lines 95–121). - Active hosts remaining in
flake.nix:serverandlaptop.
3. File Deletion
[DELETE] hosts/desktop/
- Delete the entire
hosts/desktop/directory and all its contents:hosts/desktop/configuration.nixhosts/desktop/hardware-configuration.nixhosts/desktop/home.nixhosts/desktop/config/hypr/hosts/desktop/dynu.nixhosts/desktop/homeserver.nixhosts/desktop/traefik-deployments.nixhosts/desktop/monitor.pyhosts/desktop/secrets.yamlhosts/desktop/ddclient.conf
4. Architecture & Documentation Sync
[MODIFY] architecture.md
- Update topology diagram and description to reflect active hosts:
server(Homelab) andlaptop(Workstation). - Remove references to desktop specialization invariant.
[MODIFY] AGENTS.md
- Update validation commands from
desktoptoserverandlaptop. - Update host validation matrix to reflect active hosts.
[MODIFY] README.md
- Remove legacy
hosts/desktop/references from the directory map and documentation.
Verification Plan
Automated Tests
-
Flake Check:
nix flake checkEnsures flake metadata and all remaining host configurations (
serverandlaptop) evaluate without errors. -
Dry-Build System Targets (Build, Never Switch):
nix build .#nixosConfigurations.server.config.system.build.toplevel --no-link nix build .#nixosConfigurations.laptop.config.system.build.toplevel --no-linkBoth remaining hosts must compile cleanly.
-
Verify Desktop Derivation Is Removed:
nix eval .#nixosConfigurations --apply builtins.attrNamesExpected output:
[ "laptop" "server" ]
Manual Verification
git statusinspection to ensure no untracked or unwanted deletions occurred.- Confirm
git logand commit history on the dedicated branch.