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.
37 lines
1.1 KiB
Nix
37 lines
1.1 KiB
Nix
{ pkgs, globalInputs, system, ... }:
|
|
|
|
{
|
|
# Home Manager configuration for live USB environments
|
|
# Minimal setup without persistent services
|
|
|
|
home.username = "nixos";
|
|
home.homeDirectory = "/home/nixos";
|
|
home.stateVersion = "24.05";
|
|
|
|
# Enable minimal roles only (no sync or kdeconnect for live environment)
|
|
home.roles = {
|
|
base.enable = true;
|
|
desktop.enable = true;
|
|
tmux.enable = true;
|
|
plasma-manager.enable = true;
|
|
emacs.enable = true;
|
|
i3_sway.enable = true;
|
|
# development.enable = false; # Not needed for live USB
|
|
# communication.enable = false; # Not needed for live USB
|
|
# office.enable = false; # Not needed for live USB
|
|
# media.enable = false; # Not needed for live USB
|
|
# sync.enable = false; # No persistent sync on live USB
|
|
# kdeconnect.enable = false; # No device integration on live USB
|
|
};
|
|
|
|
targets.genericLinux.enable = true;
|
|
home.sessionVariables = {};
|
|
home.sessionPath = [];
|
|
|
|
imports = [
|
|
./roles
|
|
./roles/base-linux
|
|
];
|
|
|
|
# Live USB specific overrides can go here if needed
|
|
} |