| 19 Oct 2025 |
K900 | It should respect isatty I'm pretty sure? | 13:33:01 |
helle (just a stray cat girl) | it does, but that requires a shell to redirect or some other piping (do not ask why this is a thing we ran into briefly) | 13:34:59 |
| tiferrei joined the room. | 15:28:45 |
| @tiferrei:matrix.org left the room. | 15:29:40 |
Whovian9369 | Does Lix support the lfs input attribute? I'm trying to follow https://github.com/Gigahawk/sarugetchu_mm_patcher/blob/master/README.md#usage but Lix doesn't seem to support them.
$ nix build -L --refresh 'git+https://github.com/Gigahawk/sarugetchu_mm_patcher.git?lfs=1#iso-patched'
error: unsupported input attribute 'lfs' for the 'git' scheme
| 23:15:00 |
| 20 Oct 2025 |
| lavender.pet changed their profile picture. | 04:06:21 |
| lavender.pet changed their profile picture. | 04:19:09 |
| lavender.pet changed their profile picture. | 04:24:50 |
| flax changed their profile picture. | 04:37:21 |
aloisw | Not yet, there's https://gerrit.lix.systems/c/lix/+/4118 but it hasn't really been reviewed yet. | 04:56:42 |
Whovian9369 | Cheers then! | 08:14:07 |
sorrel | In reply to @wucke13:matrix.org
So, a bit more tinkering revealed that most but not all of the overrides cause the issue:
- nixpkgs-review: causes infinite recursion
- nix-eval-jobs: No problem
- nix-fast-build: causes infinite recursion
- colmena: causes infinite recursion
Here is a minimal repro for playing:
{ pkgs, ... }:
{
nixpkgs.hostPlatform = "x86_64-linux";
# TODO debug why this yields infinite recursion
nixpkgs.overlays = [
(final: prev: {
inherit (prev.lixPackageSets.stable)
nixpkgs-review
nix-eval-jobs
nix-fast-build
colmena
;
})
];
nix.package = pkgs.lixPackageSets.stable.lix;
environment.systemPackages = with pkgs; [
nixpkgs-review
nix-eval-jobs
nix-fast-build
colmena
];
boot.isContainer = true;
fileSystems."/".fsType = "tmpfs";
}
I'm using the following overlay:
self: super: { inherit (self.lixPackageSets.stable) nixpkgs-review nix-direnv nix-fast-build nix-serve-ng colmena nix-update; lixPackageSets = super.lixPackageSets.override { inherit (super) nixpkgs-review nix-direnv nix-fast-build nix-serve-ng colmena nix-update; }; } | 08:58:47 |
sorrel | ...unsure why that didn't do a proper code block, sorry | 08:59:05 |
| ivy joined the room. | 09:44:34 |
Ami | (put the ``` on their own lines) | 13:30:42 |
minman | Hi, I try to build an SD card image for my raspberry pi 3. I use the following command and the following imports.
"${modulesPath}/profiles/base.nix"
"${modulesPath}/installer/sd-card/sd-image.nix"
nixos-generate \
--format sd-aarch64-installer \
--system aarch64-linux \
--configuration ./pi-sdcard.nix \
--out-link sd-image
But I get the following error which states that the kernel is incompatible with the aarch64-linux host platform.
error: Package ‘linux-rpi-6.6.51-stable_20241008’ in /nix/store/4xrrqhrrrxyfdf2npr5pmwrgyckdz183-source/pkgs/os-specific/linux/kernel/linux-rpi.nix:22 is not available on the requested hostPlatform:
hostPlatform.config = "aarch64-unknown-linux-gnu"
package.meta.platforms = [
"armv5tel-linux"
"armv6l-linux"
"armv7a-linux"
"armv7l-linux"
]
package.meta.badPlatforms = [ ]
, refusing to evaluate.
Do I need to specify another kernel or host platform?
| 15:48:42 |
K900 | Are you using boot.kernelPackages = pkgs.linux_raspberrypi or something | 15:49:45 |
K900 | Don't do that | 15:49:46 |
K900 | Just run mainline | 15:49:49 |
minman | Ah, I used this config as starter: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/installer/sd-card/sd-image-raspberrypi.nix, and I see that the kernelPackages of the raspberry pi are included. | 15:52:17 |
minman | Maybe I can better use the sd-image-aarch64-new-kernel.nix. What is the difference between the new-kernel variant and the normal one? | 15:53:21 |
K900 | You want the sd-image-aarch64 one | 15:53:29 |
K900 | Not that one | 15:53:31 |
K900 | The new-kernel variant has a mainline kernel and no ZFS support | 15:53:43 |
minman | Thanks :) | 15:53:57 |
minman | * Thanks :), it looks like it will build now. | 15:57:22 |
| Katalin 🔪 changed their profile picture. | 16:55:09 |
hexa | is it possible that lix is missing https://github.com/NixOS/nix/pull/8043? | 17:11:42 |
just1602 | I think so, because I hit this thing of nix only use bash and if you're using fish it doesn't always worked as expected | 17:14:45 |
hexa | yep, fish here | 17:15:09 |