| 22 Oct 2025 |
cortsf | Thanks. I'll just publish a config snippet. | 11:17:44 |
dramforever | since as mentioned, especially with flakes or something, we have the very viable alternative of users pulling your flake | 11:17:47 |
dramforever | instead of having to go through nixpkgs | 11:17:59 |
cortsf | It's ok, I knew this was going to be likely the case. Thanks! | 11:18:22 |
@gabyx:matrix.org | also its good to see more nic adoption in other places ;) | 11:19:47 |
@gabyx:matrix.org | if you go the nix flake way, once the stuff works and people find it useful you can still package to nixpkgs | 11:20:20 |
| 23 Oct 2025 |
| @mrargoz:matrix.org joined the room. | 21:01:33 |
| 24 Oct 2025 |
| @mrargoz:matrix.org left the room. | 04:39:39 |
| @xengi42:matrix.org left the room. | 19:34:21 |
| 25 Oct 2025 |
| byteflavour joined the room. | 21:48:44 |
| 26 Oct 2025 |
| @acidbong:envs.net joined the room. | 07:14:09 |
@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 |
@acidbong:envs.net | turns out, a higher-level mkIf was the way, I did misunderstood [lazyA,a]ttrsOf | 09:05:53 |
| Sir_Morton joined the room. | 15:33:28 |
| 27 Oct 2025 |
| @acidbong:envs.net left the room. | 09:20:03 |
| genadij.udarov joined the room. | 16:39:02 |
| 28 Oct 2025 |
| @rasmus:fricloud.dk left the room. | 14:35:36 |
| 1 Nov 2025 |
| Gaétan Lepage changed their profile picture. | 22:53:18 |
| Gaétan Lepage changed their profile picture. | 22:54:17 |
| 3 Nov 2025 |
| kttns0ut joined the room. | 10:14:37 |
| 4 Nov 2025 |
| ncfavier changed their profile picture. | 23:54:56 |
| 5 Nov 2025 |
| Laguito joined the room. | 05:58:22 |
| 7 Nov 2025 |
| cosmicexcursionist joined the room. | 16:59:47 |
| @awwpotato:envs.net changed their display name from awwpotato (she/her) to -> @da157:catgirl.cloud. | 18:30:30 |
| @awwpotato:envs.net left the room. | 18:40:48 |
| Mahmoud joined the room. | 19:01:48 |
| @emma:rory.gay left the room. | 22:40:21 |
| 8 Nov 2025 |
| cosmicexcursionist set a profile picture. | 01:00:07 |
| 9 Nov 2025 |
| @thedragon44:matrix.org left the room. | 14:15:37 |
| draed joined the room. | 15:28:01 |