Skip to content

Commit

Permalink
shared/nix: fix mappedRegistry
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Dec 28, 2024
1 parent 455dc5a commit 1c7334e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modules/shared/nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,14 @@ in
mappedRegistry = lib.pipe inputs [
(lib.filterAttrs (_: lib.isType "flake"))
(lib.mapAttrs (_: flake: { inherit flake; }))
(x: x // (lib.mkIf pkgs.stdenv.isLinux { nixpkgs.flake = inputs.nixpkgs; }))
(
x:
x
// {
nixpkgs.flake = if pkgs.stdenv.isLinux then inputs.nixpkgs else inputs.nixpkgs-unstable;
}
)
(x: if pkgs.stdenv.isDarwin then lib.removeAttrs x [ "nixpkgs-unstable" ] else x)
];

users = [
Expand Down

0 comments on commit 1c7334e

Please sign in to comment.