mirror of
https://github.com/Misterio77/Foundry.git
synced 2026-08-24 02:14:13 -05:00
37 lines
922 B
Nix
37 lines
922 B
Nix
# This file should be included when using hm standalone
|
|
{
|
|
outputs,
|
|
lib,
|
|
inputs,
|
|
...
|
|
}: let
|
|
flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
|
|
in {
|
|
nix = {
|
|
settings = {
|
|
extra-substituters = lib.mkAfter ["https://cache.m7.rs"];
|
|
extra-trusted-public-keys = ["cache.m7.rs:kszZ/NSwE/TjhOcPPQ16IuUiuRSisdiIwhKZCxguaWg="];
|
|
experimental-features = [
|
|
"nix-command"
|
|
"flakes"
|
|
"ca-derivations"
|
|
];
|
|
warn-dirty = false;
|
|
flake-registry = ""; # Disable global flake registry
|
|
};
|
|
registry = lib.mapAttrs (_: flake: {inherit flake;}) flakeInputs;
|
|
};
|
|
|
|
home.sessionVariables = {
|
|
NIX_PATH = lib.concatStringsSep ":" (lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs);
|
|
};
|
|
|
|
nixpkgs = {
|
|
overlays = builtins.attrValues outputs.overlays;
|
|
config = {
|
|
allowUnfree = true;
|
|
allowUnfreePredicate = _: true;
|
|
};
|
|
};
|
|
}
|