fix(jeeves)!: nix.registry
and nix.nixPath
This commit is contained in:
parent
cdf4d7cca4
commit
eea7280f98
1 changed files with 9 additions and 12 deletions
|
@ -50,19 +50,16 @@
|
||||||
hardware.enableRedistributableFirmware = true;
|
hardware.enableRedistributableFirmware = true;
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
nix = {
|
nix = let
|
||||||
registry =
|
flakeInputs = lib.filterAttrs (lib.const (lib.isType "flake")) inputs;
|
||||||
lib.mapAttrs
|
in {
|
||||||
(_: value: {
|
# This will add each flake input as a registry
|
||||||
flake = value;
|
# To make nix3 commands consistent with your flake
|
||||||
})
|
registry = lib.mapAttrs (_: value: { flake = value; }) flakeInputs;
|
||||||
inputs;
|
|
||||||
|
|
||||||
nixPath =
|
# This will additionally add your inputs to the system's legacy channels
|
||||||
lib.mapAttrsToList
|
# Making legacy nix commands consistent as well, awesome!
|
||||||
(key: value:
|
nixPath = lib.mapAttrsToList (key: value: "${key}=flake:${key}") flakeInputs;
|
||||||
"${key}=${value.to.path}")
|
|
||||||
config.nix.registry;
|
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
trusted-users = [
|
trusted-users = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue