commented out cursed-ass flake-compat(?{joepie91}) thing ????
This commit is contained in:
parent
34f3cc0d8b
commit
369a5db1b1
1 changed files with 7 additions and 7 deletions
|
|
@ -37,15 +37,15 @@
|
|||
|
||||
## This will add each flake input as a registry
|
||||
## To make nix3 commands consistent with your flake
|
||||
nix.registry = (lib.mapAttrs (_: flake: { inherit flake; }))
|
||||
((lib.filterAttrs (_: lib.isType "flake")) inputs);
|
||||
#nix.registry = (lib.mapAttrs (_: flake: { inherit flake; }))
|
||||
# ((lib.filterAttrs (_: lib.isType "flake")) inputs);
|
||||
## This will additionally add your inputs to the system's legacy channels
|
||||
## Making legacy nix commands consistent as well, awesome!
|
||||
nix.nixPath = [ "/etc/nix/path" ];
|
||||
environment.etc = lib.mapAttrs' (name: value: {
|
||||
name = "nix/path/${name}";
|
||||
value.source = value.flake;
|
||||
}) config.nix.registry;
|
||||
#nix.nixPath = [ "/etc/nix/path" ];
|
||||
#environment.etc = lib.mapAttrs' (name: value: {
|
||||
# name = "nix/path/${name}";
|
||||
# value.source = value.flake;
|
||||
#}) config.nix.registry;
|
||||
## [END - Stolen code, mostly understand from here again]
|
||||
|
||||
programs = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue