Skip to content

nix-packages v0.1.2 - Fixed Home Manager Module Support

Latest

Choose a tag to compare

@zach-source zach-source released this 18 Sep 19:09
· 26 commits to main since this release
30f9571

🏠 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!