mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 08:10:43 +01:00
62 lines
1.2 KiB
Nix
62 lines
1.2 KiB
Nix
{
|
|
self,
|
|
pkgs,
|
|
inputs,
|
|
config,
|
|
...
|
|
}:
|
|
{
|
|
services.nix-daemon.enable = true;
|
|
# nix.package = pkgs.nixVersions.latest;
|
|
|
|
nix.registry = {
|
|
n.flake = inputs.nixpkgs;
|
|
};
|
|
|
|
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs.outPath}" ];
|
|
|
|
nix.settings = {
|
|
experimental-features = [
|
|
"nix-command"
|
|
"flakes"
|
|
];
|
|
|
|
# https://github.com/NixOS/nix/issues/7273
|
|
auto-optimise-store = !pkgs.stdenv.isDarwin;
|
|
|
|
extra-platforms = [
|
|
"x86_64-darwin"
|
|
"aarch64-darwin"
|
|
];
|
|
|
|
build-users-group = "nixbld";
|
|
trusted-users = [ "ryanccn" ];
|
|
sandbox = true;
|
|
use-xdg-base-directories = true;
|
|
|
|
extra-substituters = [ ];
|
|
extra-trusted-public-keys = [ ];
|
|
|
|
nix-path = config.nix.nixPath;
|
|
};
|
|
|
|
nixpkgs = {
|
|
overlays = [
|
|
inputs.rust-overlay.overlays.default
|
|
|
|
inputs.nrr.overlays.default
|
|
inputs.am.overlays.default
|
|
inputs.nyoom.overlays.default
|
|
inputs.morlana.overlays.default
|
|
inputs.spdx-gen.overlays.default
|
|
|
|
self.overlays.ryan-mono-bin
|
|
self.overlays.ibm-plex
|
|
];
|
|
|
|
config.allowUnfree = true;
|
|
hostPlatform = "aarch64-darwin";
|
|
};
|
|
|
|
programs.nix-index-database.comma.enable = true;
|
|
}
|