!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

914 Members
For people hacking on the Nix package manager itself191 Servers

Load older messages


SenderMessageTime
30 Jun 2021
@balsoft:balsoft.rubalsoft Here we go for the first part: https://github.com/NixOS/nix/pull/4968 19:22:34
@balsoft:balsoft.rubalsoft
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:balsoft.rubalsoftStill, a shame it's not possible to do this :/19:31:54
@balsoft:balsoft.rubalsoft Wait, why doesn't nixConfig.flake-registry work? 20:02:46
@balsoft:balsoft.rubalsoft Aha, ok, I think it's because the config is applied after the inputs are resolved 21:01:41
@balsoft:balsoft.rubalsoft Yep, I stuck an apply in there and it seemed to work 21:07:11
@balsoft:balsoft.rubalsoftDon't really like this though21:07:19
1 Jul 2021
@balsoft:balsoft.rubalsoft 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:balsoft.rubalsoft
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:matrix.orgIrenes joined the room.09:21:49
@immae:matrix.orgimmae changed their display name from immae (he/him) to immae.17:46:05
@immae:matrix.orgimmae changed their profile picture.17:46:15
@immae:matrix.orgimmae changed their profile picture.17:47:54
@immae:immae.euimmae joined the room.18:41:10
@immae:matrix.orgimmae left the room.22:02:23
4 Jul 2021
@krey:matrix.orgKrey
{ ... }: {
	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:matrix.orgKrey(part of file imported in configuration.nix)10:46:48
@balsoft:balsoft.rubalsoftI don't think this is the right chat16:02:43
5 Jul 2021
@manveru:matrix.orgmanveru 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:matrix.orgmanveru { outputs = { nixpkgs, ... }: { devShell.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.mkShell { FOO = "@"; }; }; } 08:21:25
@manveru:matrix.orgmanveru this seems like a regression, having @ as an env var value in nix-shell is fine 08:40:55
@manveru:matrix.orgmanveruwell, i verified that it's a bug in nix itself08:52:16
@manveru:matrix.orgmanveru
{
  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:matrix.orgmanveruthis fails as well, so it doesn't rely on stdenv or mkShell08:52:32
@balsoft:balsoft.rubalsoft I remember there being a similar issue with " 08:52:40
@balsoft:balsoft.rubalsoft It broke nix develop for some packages 08:52:47
@manveru:matrix.orgmanveruhttps://github.com/NixOS/nix/blob/master/src/nix/develop.cc#L24108:58:55
@manveru:matrix.orgmanverui think that's the issue...08:59:00
@manveru:matrix.orgmanverusomehow that env var should have a quoted attribute that is set wrong09:00:20
@manveru:matrix.orgmanveru \ is also broken, it gets escaped as '\' 09:11:44

Show newer messages


Back to Room ListRoom Version: 6