30 Jun 2021 |
balsoft | I want to imporve nix registry slightly:
- Add
--registry flag to select the registry file to manipulate (instead of $XDG_CONFIG_HOME/nix/registry.json )
- Add an optional second argument to
nix registry pin that would accept a flake URI to pin the flake to, instead of taking it from the global registry.
This will make nix registry actually useful for managing custom registries. | 12:48:24 |
balsoft | Also, I want to add the ability to mark registry entries as "flake": false to make custom registries even more useful. | 12:48:51 |
balsoft | I'm already working on both, but if you have any suggestions on how to improve this, please share them rightaway | 12:49:09 |
| cw (Vi/Vim) changed their display name from cw (28 cycles) to cw (Vi/Vim). | 16:27:54 |
balsoft | Here we go for the first part: https://github.com/NixOS/nix/pull/4968 | 19:22:34 |
balsoft | In reply to @balsoft:balsoft.ru Also, I want to add the ability to mark registry entries as "flake": false to make custom registries even more useful. Disregard this, I see why it's not really idiomatic. | 19:31:46 |
balsoft | Still, a shame it's not possible to do this :/ | 19:31:54 |
balsoft | Wait, why doesn't nixConfig.flake-registry work? | 20:02:46 |
balsoft | Aha, ok, I think it's because the config is applied after the inputs are resolved | 21:01:41 |
balsoft | Yep, I stuck an apply in there and it seemed to work | 21:07:11 |
balsoft | Don't really like this though | 21:07:19 |
1 Jul 2021 |
balsoft | Is there any way to get at least https://github.com/NixOS/nix/pull/4969 merged? I have tested it on multi-user and single-user systems, not sure what else to do | 13:33:58 |
balsoft | In reply to @balsoft:balsoft.ru Is there any way to get at least https://github.com/NixOS/nix/pull/4969 merged? I have tested it on multi-user and single-user systems, not sure what else to do (it's a show-stopper for usable custom registries) | 13:35:16 |
2 Jul 2021 |
| Irenes joined the room. | 09:21:49 |
| immae changed their display name from immae (he/him) to immae. | 17:46:05 |
| immae changed their profile picture. | 17:46:15 |
| immae changed their profile picture. | 17:47:54 |
| immae joined the room. | 18:41:10 |
| immae left the room. | 22:02:23 |
4 Jul 2021 |
Krey | { ... }: {
services.bind.zones = {
"${networking.hostName}.${networking.domain}" = {
file = "/var/dns/${networking.hostName}.${networking.domain}";
master = true;
masters = [ "192.168.0.1" ];
};
};
}
Howddya use the `networking.* things in this file?
| 10:46:36 |
Krey | (part of file imported in configuration.nix) | 10:46:48 |
balsoft | I don't think this is the right chat | 16:02:43 |
5 Jul 2021 |
manveru | TIL that nix print-dev-env breaks if you have an env variable with an @ inside of it in your devShell | 08:13:57 |
manveru | { outputs = { nixpkgs, ... }: { devShell.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.mkShell { FOO = "@"; }; }; } | 08:21:25 |
manveru | this seems like a regression, having @ as an env var value in nix-shell is fine | 08:40:55 |
manveru | well, i verified that it's a bug in nix itself | 08:52:16 |
manveru | {
outputs = { nixpkgs, ... }: {
devShell.x86_64-linux = derivation {
name = "test";
builder = "${nixpkgs.legacyPackages.x86_64-linux.bash}/bin/bash";
args = [
(builtins.toFile "builder" ''
set -exuo pipefail
echo hier
echo hi > $out
'')
];
outputs = [ "out" ];
system = "x86_64-linux";
FOO = "@";
};
};
}
| 08:52:21 |
manveru | this fails as well, so it doesn't rely on stdenv or mkShell | 08:52:32 |
balsoft | I remember there being a similar issue with " | 08:52:40 |
balsoft | It broke nix develop for some packages | 08:52:47 |