commented out cursed-ass flake-compat(?{joepie91}) thing ????

This commit is contained in:
serenity-F 2024-12-19 22:21:06 +10:00
parent 34f3cc0d8b
commit 369a5db1b1

View file

@ -37,15 +37,15 @@
## This will add each flake input as a registry ## This will add each flake input as a registry
## To make nix3 commands consistent with your flake ## To make nix3 commands consistent with your flake
nix.registry = (lib.mapAttrs (_: flake: { inherit flake; })) #nix.registry = (lib.mapAttrs (_: flake: { inherit flake; }))
((lib.filterAttrs (_: lib.isType "flake")) inputs); # ((lib.filterAttrs (_: lib.isType "flake")) inputs);
## This will additionally add your inputs to the system's legacy channels ## This will additionally add your inputs to the system's legacy channels
## Making legacy nix commands consistent as well, awesome! ## Making legacy nix commands consistent as well, awesome!
nix.nixPath = [ "/etc/nix/path" ]; #nix.nixPath = [ "/etc/nix/path" ];
environment.etc = lib.mapAttrs' (name: value: { #environment.etc = lib.mapAttrs' (name: value: {
name = "nix/path/${name}"; # name = "nix/path/${name}";
value.source = value.flake; # value.source = value.flake;
}) config.nix.registry; #}) config.nix.registry;
## [END - Stolen code, mostly understand from here again] ## [END - Stolen code, mostly understand from here again]
programs = { programs = {