🏠 nix-packages v0.1.2 - Home Manager Module Fixed
🔧 Critical Fix Applied
- Fixed home-manager module scope: Moved homeManagerModules outside eachDefaultSystem
- Resolves access error: No more 'flake does not provide attribute homeManagerModules.opx'
- System-agnostic modules: Home-manager modules now work across all systems
- Proper flake structure: Follows Nix best practices for module exposure
🎯 Issue Resolved
Before: homeManagerModules nested inside system-specific outputs (broken)
After: homeManagerModules at top level using // operator (working)
📦 Installation (Now Working)
# Package installation
nix profile add github:zach-source/nix-packages/v0.1.2#opx
# Home Manager module (now accessible)
inputs.zach-utils.url = "github:zach-source/nix-packages/v0.1.2";
imports = [ inputs.zach-utils.homeManagerModules.opx ];🏗️ Home Manager Configuration
services.opx-authd = {
enable = true;
backend = "multi";
enableAuditLog = true;
sessionTimeout = 8;
auditLogRetentionDays = 90;
policy = {
allow = [
{
path = "/usr/bin/kubectl";
refs = [ "op://Production/k8s/*" ];
require_signed = true;
}
];
default_deny = true;
};
};✅ Verified Working
- Package builds: opx binaries install correctly
- Module accessible: homeManagerModules.opx now properly exposed
- Service configuration: Complete launchd/systemd integration
- Declarative policies: JSON policy configuration support
This release resolves the home-manager integration issues!