[nixos-configs-ek5] Consolidate flake overlay configurations #21
Reference in New Issue
Block a user
Delete Branch "bead/nixos-configs-ek5"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
mkBaseOverlayfunction that accepts optionalunstableOverlaysparametermkHomeManagerConfigfunction that acceptssharedModulesparameterChanges
The overlay configuration was repeated 3 times in flake.nix (nixosModules, nixosModulesUnstable, darwinModules). This PR extracts common patterns into two factory functions:
mkBaseOverlay: Creates the standard overlay with:
unstablepackage set from nixpkgs-unstablecustompackages from ./packagesbitwarden-desktopcompatibility aliasmkHomeManagerConfig: Creates home-manager configuration with:
useGlobalPkgsanduseUserPackagesenabledsharedModulesfor platform-specific modules (e.g., plasma-manager)Test plan
nix eval .#nixosConfigurations.nix-book.config.system.stateVersionImplements bead: nixos-configs-ek5