Compare commits

..

2 commits

Author SHA1 Message Date
c56c791088
pipes pipes 2024-10-03 11:35:40 -05:00
a738b58baf
pin nixd to released version 2024-10-03 11:35:40 -05:00
3 changed files with 20 additions and 18 deletions

View file

@ -729,17 +729,17 @@
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1726640797,
"narHash": "sha256-tuqkFa7ZxcGwU8gTbKO61oGMdTmG9CiaI+NiaOV7SCI=",
"lastModified": 1727483986,
"narHash": "sha256-8F97zAu+icDC9ZYS7m+Y58oZQ7R3gVuXMvzAfgkVmJo=",
"owner": "nix-community",
"repo": "nixd",
"rev": "e2f0d908d6f2ee7bf72c620ed3c78817143b50ae",
"rev": "05ff3db3d1da26eafd5f58c7104e4f9ff6630894",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "2.4.0",
"repo": "nixd",
"rev": "e2f0d908d6f2ee7bf72c620ed3c78817143b50ae",
"type": "github"
}
},

View file

@ -10,7 +10,7 @@
nixos-wsl.url = "github:nix-community/NixOS-WSL";
nix-index-database.url = "github:nix-community/nix-index-database";
# pipe support added
nixd.url = "github:nix-community/nixd/e2f0d908d6f2ee7bf72c620ed3c78817143b50ae";
nixd.url = "github:nix-community/nixd/2.4.0";
lix = {
url = "https://git.lix.systems/lix-project/lix/archive/main.tar.gz";

View file

@ -47,21 +47,22 @@ let
# ["a" "b"] -> {a.enable = true; b.enable = true;}
enableAttrs =
attrs:
listToAttrs (
map (attr: {
attrs
|> map (attr: {
name = attr;
value = enabled;
}) attrs
);
})
|> listToAttrs;
# ["a" "b"] -> {a.enable = false; b.enable = false;}
disableAttrs =
attrs:
listToAttrs (
map (attr: {
attrs
|> map (attr: {
name = attr;
value = disabled;
}) attrs
);
})
|> listToAttrs;
mkIfIn = name: list: prev.mkIf (builtins.elem name list);
@ -110,7 +111,8 @@ let
};
loadOverlays =
inputs: dir: readDir dir
inputs: dir:
readDir dir
|> attrNames
|> filter (f: f != "default.nix")
|> map (f: import (../overlays + "/${f}") { inherit inputs; });