Complete migration of home-manager modules to roles
Migrate all remaining home-manager modules from home/modules/ to home/roles/ to establish a unified role-based configuration pattern. This completes the migration started in Phase 1. Changes: - Phase 1-3: Migrated tmux, plasma-manager, kubectl, and emacs to roles - Phase 4: Migrated aerospace with custom options under home.roles.aerospace.* - Phase 5: Migrated i3+sway with shared config and override options - Phase 6: Removed empty home/modules/ directory All home configs now import only ./roles with role-based enable options. Updated flake.nix machine-specific overrides to use new namespaces. Verified with nix flake check - all configurations build successfully.
This commit is contained in:
@@ -120,29 +120,25 @@
|
||||
|
||||
home.shell.enableShellIntegration = true;
|
||||
|
||||
# Enable aerospace window manager with autoraise
|
||||
programs.aerospace = {
|
||||
enable = true;
|
||||
leader = "cmd";
|
||||
# Optional: Add per-machine userSettings overrides
|
||||
# userSettings = {
|
||||
# mode.main.binding."${leader}-custom" = "custom-command";
|
||||
# };
|
||||
};
|
||||
|
||||
home.roles = {
|
||||
base.enable = true;
|
||||
development = {
|
||||
enable = true;
|
||||
allowArbitraryClaudeCodeModelSelection = true;
|
||||
};
|
||||
tmux.enable = true;
|
||||
emacs.enable = true;
|
||||
aerospace = {
|
||||
enable = true;
|
||||
leader = "cmd";
|
||||
# Optional: Add per-machine userSettings overrides
|
||||
# userSettings = {
|
||||
# mode.main.binding."${leader}-custom" = "custom-command";
|
||||
# };
|
||||
};
|
||||
};
|
||||
|
||||
imports = [
|
||||
./roles
|
||||
./modules/emacs
|
||||
./modules/kubectl
|
||||
./modules/tmux
|
||||
./modules/aerospace
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user