fix(jeeves)!: nix.registry and nix.nixPath

This commit is contained in:
reo101 2024-06-10 00:18:41 +03:00
parent cdf4d7cca4
commit eea7280f98
Signed by: reo101
GPG key ID: 675AA7EF13964ACB

View file

@ -50,19 +50,16 @@
hardware.enableRedistributableFirmware = true;
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
nix = {
registry =
lib.mapAttrs
(_: value: {
flake = value;
})
inputs;
nix = let
flakeInputs = lib.filterAttrs (lib.const (lib.isType "flake")) inputs;
in {
# This will add each flake input as a registry
# To make nix3 commands consistent with your flake
registry = lib.mapAttrs (_: value: { flake = value; }) flakeInputs;
nixPath =
lib.mapAttrsToList
(key: value:
"${key}=${value.to.path}")
config.nix.registry;
# This will additionally add your inputs to the system's legacy channels
# Making legacy nix commands consistent as well, awesome!
nixPath = lib.mapAttrsToList (key: value: "${key}=flake:${key}") flakeInputs;
settings = {
trusted-users = [