mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-07 16:47:23 +08:00
nix: conditional on darwin
This commit is contained in:
parent
b21ada7574
commit
cd5cffadf3
1 changed files with 14 additions and 9 deletions
|
|
@ -1,19 +1,24 @@
|
|||
{ flake, ... }:
|
||||
{ flake, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
nixpkgs.config.allowBroken = true;
|
||||
nixpkgs.config.allowUnsupportedSystem = true;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nixpkgs.overlays = [
|
||||
flake.inputs.nuenv.overlays.nuenv
|
||||
(self: super: { devour-flake = self.callPackage flake.inputs.devour-flake { }; })
|
||||
];
|
||||
nixpkgs = {
|
||||
config = {
|
||||
allowBroken = true;
|
||||
allowUnsupportedSystem = true;
|
||||
allowUnfree = true;
|
||||
};
|
||||
overlays = [
|
||||
flake.inputs.nuenv.overlays.nuenv
|
||||
(self: super: { devour-flake = self.callPackage flake.inputs.devour-flake { }; })
|
||||
];
|
||||
};
|
||||
|
||||
nix = {
|
||||
nixPath = [ "nixpkgs=${flake.inputs.nixpkgs}" ]; # Enables use of `nix-shell -p ...` etc
|
||||
registry.nixpkgs.flake = flake.inputs.nixpkgs; # Make `nix shell` etc use pinned nixpkgs
|
||||
settings.extra-platforms = "aarch64-darwin x86_64-darwin";
|
||||
settings.experimental-features = "nix-command flakes repl-flake";
|
||||
# I don't have an Intel mac.
|
||||
settings.extra-platforms = lib.mkIf pkgs.stdenv.isDarwin "aarch64-darwin x86_64-darwin";
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue