NixOS + home-manager configs, mirrored from GitLab SaaS. gitlab.com/andreijiroh-dev/nixops-config
nix-flake nixos home-manager nixpkgs nix-flakes
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add top-level overlays.default for downstream consumers (https://github.com/andreijiroh-dev/nixops-config/pull/1)

* Initial plan

* Add top-level overlays.default (system-aware) for downstream consumers

Co-authored-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>

authored by

Copilot
Andrei Jiroh Halili
copilot-swe-agent[bot]
and committed by
GitHub
9aa87804 0e9010ea

+23 -8
+23 -8
flake.nix
··· 106 106 }: 107 107 let 108 108 dev-pkgs = import ./pkgs; 109 + 110 + # Reusable overlay function for any system 111 + overlayFor = system: final: prev: { 112 + coolify-compose = prev.callPackage ./pkgs/coolify-compose.nix { }; 113 + detect-vscode-for-git = prev.callPackage ./pkgs/detect-vscode-for-git.nix { }; 114 + ssh-agent-loader = prev.callPackage ./pkgs/ssh-agent-loader.nix { }; 115 + }; 109 116 in 110 117 flake-utils.lib.eachDefaultSystem ( 111 118 system: ··· 113 120 pkgs = import nixpkgs { inherit system; }; 114 121 in 115 122 { 116 - overlays = { 117 - default = final: prev: { 118 - coolify-compose = prev.callPackage ./pkgs/coolify-compose.nix { }; 119 - detect-vscode-for-git = prev.callPackage ./pkgs/detect-vscode-for-git.nix { }; 120 - ssh-agent-loader = prev.callPackage ./pkgs/ssh-agent-loader.nix { }; 121 - }; 122 - }; 123 - 124 123 # Packages for this system 125 124 packages = { 126 125 coolify-compose = pkgs.callPackage ./pkgs/coolify-compose.nix { }; ··· 142 141 } 143 142 ) 144 143 // { 144 + # Top-level overlays for downstream consumers 145 + overlays = { 146 + # System-aware default overlay that works regardless of the system 147 + default = final: prev: 148 + let 149 + sys = final.system or prev.stdenv.system or "x86_64-linux"; 150 + in 151 + (overlayFor sys) final prev; 152 + 153 + # Per-system overlays for compatibility 154 + x86_64-linux = overlayFor "x86_64-linux"; 155 + aarch64-linux = overlayFor "aarch64-linux"; 156 + x86_64-darwin = overlayFor "x86_64-darwin"; 157 + aarch64-darwin = overlayFor "aarch64-darwin"; 158 + }; 159 + 145 160 nixosConfigurations = { 146 161 recoverykit-amd64 = nixpkgs.lib.nixosSystem { 147 162 system = "x86_64-linux";