Refactor: Extract platform-specific roles to base-linux and base-darwin

Create base-linux and base-darwin modules to cleanly separate platform-
specific role imports from shared roles. This prevents importing modules
that require platform-specific home-manager modules (like plasma-manager
on NixOS) in environments where they don't exist (like nix-darwin).

- base-linux includes: plasma-manager, i3+sway
- base-darwin includes: aerospace
- roles/default.nix now only contains truly cross-platform roles

This architecture makes it immediately clear which roles are shared
versus platform-specific and makes it easy to add new platform-specific
roles in the future.
This commit is contained in:
2025-12-02 15:16:42 -08:00
parent b9c48f9dd1
commit fe6558e0c1
8 changed files with 23 additions and 27 deletions

View File

@@ -30,6 +30,7 @@
imports = [
./roles
./roles/base-linux
];
# Live USB specific overrides can go here if needed