!9IQChSjwSHXPPWTa:lix.systems

Lix

1121 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms302 Servers

Load older messages


SenderMessageTime
7 Jan 2026
@minman:matrix.orgminmanI have question about overriding nix files. I want to override the sdImage.populateFirmwareCommands from the imported <nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix>. What would be the best way to do this? https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/installer/sd-card/sd-image-aarch64.nix14:07:28
@minman:matrix.orgminman *

I have question about overriding nix files. I want to override the sdImage.populateFirmwareCommands from the imported <nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix>. What would be the best way to do this?

https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/installer/sd-card/sd-image-aarch64.nix

14:07:46
@minman:matrix.orgminman *

I have question about overriding nix files. I want to override the sdImage.populateFirmwareCommands from the imported <nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix>. What would be the best way to do this?

https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/installer/sd-card/sd-image-aarch64.nix

14:08:02
@minman:matrix.orgminman *

I have question about overriding nix files. I want to override the sdImage.populateFirmwareCommands from the imported <nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix>. What would be the best way to do this?

For now I have something like this:

let
    sd-image = import <nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix> { inherit pkgs config lib; };
in
{
  imports = [
    sd-image
    ./pi-unifi.nix
  ];

  nixpkgs.config.packageOverrides = pkgs: {
      sdImage = sd-image.sdImage.override {
        populateFirmwareCommands = "overrideCommands"
     }
  }

https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/installer/sd-card/sd-image-aarch64.nix

14:26:45
@minman:matrix.orgminman *

I have question about overriding nix files. I want to override the sdImage.populateFirmwareCommands from the imported <nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix>. What would be the best way to do this?

For now I have something like this:

let
    sd-image = import <nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix> { inherit pkgs config lib; };
in
{
  imports = [
    sd-image
  ];

  nixpkgs.config.packageOverrides = pkgs: {
      sdImage = sd-image.sdImage.override {
        populateFirmwareCommands = "overrideCommands"
     }
  }

https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/installer/sd-card/sd-image-aarch64.nix

14:27:25
@minman:matrix.orgminman *

I have question about overriding nix files. I want to override the sdImage.populateFirmwareCommands from the imported <nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix>. What would be the best way to do this?

For now I have something like this, it builds but the command is not overridden.

let
    sd-image = import <nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix> { inherit pkgs config lib; };
in
{
  imports = [
    sd-image
  ];

  nixpkgs.config.packageOverrides = pkgs: {
      sdImage = sd-image.sdImage.override {
        populateFirmwareCommands = "overrideCommands"
     }
  }

https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/installer/sd-card/sd-image-aarch64.nix

15:04:38
8 Jan 2026
@dahs:matrix.orgdahs joined the room.02:41:45
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)Is there a Lix standalone rootless installer (similar for Nixsa for Nix) for Lix?09:43:55
@k900:0upti.meK900I'm pretty sure a static binary can just work with a chroot store?09:47:40
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)I could try10:02:55
@piegames:flausch.socialpiegameshttps://github.com/andir/npins/blob/master/src/default.nix#L232-L238 do we already have an issue for this somewhere?11:23:47
@piegames:flausch.socialpiegames Or generally some issues on tryEval madness 11:23:55
@raitobezarius:matrix.orgraitobezariusi don't get the problem you are trying to solve just by reading the comment11:46:17
@piegames:flausch.socialpiegamesthe other half of the mess is here https://github.com/andir/npins/blob/master/src/default.nix#L12-L2011:47:29
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her) Does Lix ship nix-store.pc? 13:21:46
@k900:0upti.meK900It should be renamed to lix-store because it's not API compatible with cppnix13:24:26
@thepaper:matrix.orgpaper removed their profile picture.14:33:38
@tgrcdev:matrix.orgTGRCDev changed their display name from TGRCDev to Flotsam.16:28:30
@tgrcdev:matrix.orgTGRCDev changed their display name from Flotsam to TGRCDev.16:31:43
@neolampis:anarchist.nexusνεολαμπής [NSAolampis] changed their profile picture.17:27:13
@neolampis:anarchist.nexusνεολαμπής [NSAolampis] changed their profile picture.17:59:09
@oli:catgirl.cloudholly [she/it] 🏳️‍⚧️ changed their profile picture.18:29:18
@oli:catgirl.cloudholly [she/it] 🏳️‍⚧️ changed their profile picture.18:30:52
@encrypteddvjjrxv:x-hain.deSpectral (he/him) changed their profile picture.18:49:01
@evie:matrix.group-meowing.roEvie (they/she) joined the room.19:56:48
@guiniol:matrix.orgguiniol I seem to have borked my system enough that systemd isn't responding via DBUS or something and can't nixos-rebuild switch anymore. So my plan is to boot of a live USB and use nixos-enter to get back into the system with a working systemd. Is there an option to nixos-rebuild switch that will let it rebuild from scratch? Ie, I am fine using the remote cache but I want it to overwrite all the local files that it would normally re-use. Is there an option for that? I don't see it in the man page. 21:43:10
@guiniol:matrix.orgguinioloh21:45:06
@guiniol:matrix.orgguiniol nix build repair maybe? 21:45:12
@guiniol:matrix.orgguiniol * nix build --repair maybe? 21:45:19
@jappie:jappie.devjappie if you want to validate the nix store, try nix-store --verify --check-contents 21:45:35

Show newer messages


Back to Room ListRoom Version: 10