!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

896 Members
181 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
22 Oct 2025
@dramforever:matrix.orgdramforeversince as mentioned, especially with flakes or something, we have the very viable alternative of users pulling your flake11:17:47
@dramforever:matrix.orgdramforeverinstead of having to go through nixpkgs11:17:59
@cortsf:matrix.orgcortsfIt's ok, I knew this was going to be likely the case. Thanks!11:18:22
@gabyx:matrix.org@gabyx:matrix.orgalso its good to see more nic adoption in other places ;)11:19:47
@gabyx:matrix.org@gabyx:matrix.orgif you go the nix flake way, once the stuff works and people find it useful you can still package to nixpkgs11:20:20
23 Oct 2025
@mrargoz:matrix.org@mrargoz:matrix.org joined the room.21:01:33
24 Oct 2025
@mrargoz:matrix.org@mrargoz:matrix.org left the room.04:39:39
@xengi42:matrix.org@xengi42:matrix.org left the room.19:34:21
25 Oct 2025
@byte-flavour:matrix.orgbyteflavour joined the room.21:48:44
26 Oct 2025
@acidbong:envs.net@acidbong:envs.net joined the room.07:14:09
@acidbong:envs.net@acidbong:envs.net moin. i'm trying to expose my NixOS' config.i18n.glibcLocales (for the sake of being built and cached by CI) in a flake-parts way, but there's a catch

here's what I define:
{lib,self,...}: {
  perSystem = {system, ...}: {
      packages = {
        glibcLocales-bong = lib.mkIf (
          self.nixosConfigurations.bong.config.nixpkgs.hostPlatform.system == system
        ) self.nixosConfigurations.bong.config.i18n.glibcLocales;
      };
  };
}
I expect it to generate this
{
  packages = {
    aarch64-linux = {
      ...
      dwm = ...;
      hacksaw = ...;
      ...
    };
    x86_64-linux = {
      ...
      dwm = ...;
      glibcLocales-bong = ...;
      hacksaw = ...;
      ...
    };
  };
}
but it does not: instead, when running nix flake show --all-systems, it still tries to evaluate it on a wrong system
$ nix flake show --all-systems
...
└───packages
    ├───aarch64-linux
    │   ├───desktop-scripts: package 'desktop-scripts'
    │   ├───dwm: package 'dwm-6.5'
       error: The option `perSystem.aarch64-linux.packages.glibcLocales-bong' was accessed but has no value defined. Try setting the option.
before submitting to flake.parts, I wanna make sure whether they misimplement this or i misunderstood Nixpkgs modules and lib.types.attrsOf in particular
07:16:41

Show newer messages


Back to Room ListRoom Version: 6