Set registry and nixPath

This commit is contained in:
SebastianStork 2025-04-13 14:36:05 +02:00
parent 5fb05b38a4
commit 33657999e2

View file

@ -2,6 +2,7 @@
config,
inputs,
self,
lib,
pkgs,
...
}:
@ -10,9 +11,19 @@
networking.domain = "stork-atlas.ts.net";
nix = {
nix =
let
flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
in
{
channel.enable = false;
registry = lib.mapAttrs (_: flake: { inherit flake; }) flakeInputs;
nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs;
settings = {
flake-registry = "";
nix-path = config.nix.nixPath;
experimental-features = [
"nix-command"
"flakes"