mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
26 lines
1.1 KiB
Nix
26 lines
1.1 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
std,
|
|
pkgs,
|
|
inputs,
|
|
...
|
|
}: let
|
|
inherit (std) set list;
|
|
inherit (lib.strings) versionAtLeast;
|
|
inputs' = set.filter (n: _: !list.elem n ["pypi-deps-db"]) (set.rename "self" "kat" inputs);
|
|
in {
|
|
nix = {
|
|
nixPath = set.mapToValues (name: flake: "${name}=${flake.outPath}") inputs';
|
|
registry = set.map (_: flake: {inherit flake;}) inputs';
|
|
|
|
package = pkgs.lixPackageSets.stable.lix;
|
|
settings = {
|
|
experimental-features = list.optional (versionAtLeast config.nix.package.version "2.4") "nix-command flakes";
|
|
substituters = ["https://arc.cachix.org" "https://kittywitch.cachix.org" "https://nix-gaming.cachix.org" "https://nix-community.cachix.org"];
|
|
trusted-public-keys = ["arc.cachix.org-1:DZmhclLkB6UO0rc0rBzNpwFbbaeLfyn+fYccuAy7YVY=" "kittywitch.cachix.org-1:KIzX/G5cuPw5WgrXad6UnrRZ8UDr7jhXzRTK/lmqyK0=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="];
|
|
auto-optimise-store = true;
|
|
trusted-users = ["root" "@wheel"];
|
|
};
|
|
};
|
|
}
|