File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change 2020 then "/Users/${ config . home . username } "
2121 else "/home/${ config . home . username } " ;
2222
23- # nix.registry =
24- # let
25- # flakeDir = "${config.home.homeDirectory}/flakes";
26- # flakeDirExists = config.home.homeDirectory != "" && (builtins.readDir (config.home.homeDirectory)).flakes or "" == "directory";
27- # flakeDirNames = builtins.attrNames (lib.attrsets.filterAttrs (_: fileType: fileType == "directory") (builtins.readDir flakeDir));
28- # flakeList = map
29- # (dirName: {
30- # name = dirName;
31- # value = {
32- # exact = false;
33- # to = { type = "path"; path = "${flakeDir}/${dirName}"; };
34- # };
35- # })
36- # flakeDirNames;
37- # flakes = lib.attrsets.optionalAttrs flakeDirExists (builtins.listToAttrs flakeList);
38- # in
39- # # Add exact=false to all the nix.registry.<name> defined here
40- # flakes // builtins.mapAttrs (_: val: val // { exact = false; }) {
41- # zig.to = { type = "github"; owner = "aiotter"; repo = "zig-on-nix"; };
42- # local.to = { type = "path"; path = config.home.homeDirectory + "/repo/github.com/NixOS/nixpkgs"; };
43- # repo.to = { type = "path"; path = config.home.homeDirectory + "/repo/github.com"; };
44- # };
4523
4624 home . packages = [
4725 pkgs . git
You can’t perform that action at this time.
0 commit comments