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.
44 lines
985 B
Nix
44 lines
985 B
Nix
{ config, lib, pkgs, globalInputs, system, ... }:
|
|
|
|
{
|
|
# Home Manager configuration for compact laptop setups
|
|
# Optimized for space-constrained environments
|
|
|
|
home.username = "johno";
|
|
home.homeDirectory = "/home/johno";
|
|
home.stateVersion = "24.05";
|
|
|
|
# Enable essential roles only (exclude heavy office/media packages)
|
|
home.roles = {
|
|
base.enable = true;
|
|
desktop.enable = true;
|
|
development.enable = true;
|
|
communication.enable = true;
|
|
kdeconnect.enable = true;
|
|
media.enable = true;
|
|
sync.enable = true;
|
|
kubectl.enable = true;
|
|
tmux.enable = true;
|
|
plasma-manager.enable = true;
|
|
emacs.enable = true;
|
|
i3_sway.enable = true;
|
|
|
|
# Launcher wrappers for excluded/optional packages
|
|
launchers = {
|
|
enable = true;
|
|
packages = [
|
|
"libreoffice"
|
|
];
|
|
};
|
|
};
|
|
|
|
targets.genericLinux.enable = true;
|
|
home.sessionVariables = {};
|
|
home.sessionPath = [];
|
|
|
|
imports = [
|
|
./roles
|
|
./roles/base-linux
|
|
];
|
|
}
|