m3tm3re
f3749c5679
feat: implement profile system with mkHomeConfig and context constraints
...
- Add home/lib/default.nix with mkHomeConfig utility
- Loads base + common modules always
- Maps profiles (coding, gaming, media) to module imports
- Enforces desktop/server mutual exclusion via assertion
- Context must be 'desktop', 'server', or null
- Migrate all per-host home configs to new profile system
- m3-ares: context=desktop, profiles=[coding, gaming, media]
- m3-kratos: context=desktop, profiles=[coding, gaming, media]
- m3-atlas: context=server, profiles=[coding]
- m3-helios: context=server, profiles=[]
- m3-hermes: context=server, profiles=[]
- m3-aether: context=server, profiles=[]
- m3-daedalus: context=desktop, profiles=[coding, media]
- Replace features.* options with new namespaces:
- features.cli.* -> base.shell.* / base.cliTools.* / base.secrets
- features.desktop.* -> desktop.wm.* / desktop.apps.* / desktop.theme.*
- gaming/media moved to profiles.gaming.* / profiles.media.*
- Fix home/coding/editor/neovim.nix: remove duplicate option declaration
(coding.editors.neovim.enable already declared by m3ta-nixpkgs)
- Fix home/coding/lsp/servers.nix: replace removed nodePackages.typescript-language-server
with typescript-language-server
- Fix home/desktop/theme/wallpapers.nix: correct relative path
(was ../../.. which resolved to project root, should be ../..)
2026-04-26 11:03:43 +02:00
m3tm3re
1b5bcae686
feat: create new home/ directory structure for profile-based config
...
New structure:
- home/base/ - Always loaded (shell, cli-tools, secrets)
- home/coding/ - Profile-independent dev tooling (editor, lsp, git, agents)
- home/profiles/ - Freely combinable profiles (gaming, media)
- home/desktop/ - Desktop-only (wm, apps, theme)
- home/server/ - Minimal server stub
Migration sources:
- home/features/cli/ → home/base/{shell,cli-tools,secrets}
- home/features/desktop/hyprland,wayland,rofi → home/desktop/wm/
- home/features/desktop/obsidian,office,webapps,crypto → home/desktop/apps/
- home/features/desktop/fonts,theme,wallpapers → home/desktop/theme/
- gaming.nix split → home/profiles/gaming/{steam,gamescope}
- media.nix split → home/profiles/media/{obs,ffmpeg,yt-dlp,kdenlive,handbrake}
Option namespaces updated:
- features.cli.* → base.shell.* / base.cliTools.* / base.secrets
- features.desktop.* → desktop.wm.* / desktop.apps.* / desktop.theme.*
- features.desktop.gaming → profiles.gaming.*
- features.desktop.media → profiles.media.*
Verified: nix flake check passes (warnings only)
2026-04-26 10:37:03 +02:00