!9IQChSjwSHXPPWTa:lix.systems

Lix

964 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-rooms260 Servers

Load older messages


SenderMessageTime
5 Jul 2025
@scirave:envs.netSciRave joined the room.18:09:42
@lag0:matrix.orgLaguito
In reply to @charles:computer.surgery
no idea what you're trying to ask here. the commands i posted should all be run within the live iso. the nix build command should be one that builds the system closure you intend to install. you could use some other command instead if you want like nixos-rebuild build

I mean which one is the correct?

nix --experimental-features 'nix-command flakes' build ./nix#nixosConfigurations.UwU.config.system.build.toplevel

Or

nix --experimental-features 'nix-command flakes' build /mnt/home/lag/nix#nixosConfigurations.UwU.config.system.build.toplevel

20:02:56
@zowie:zowi.eeZowie 🏳️‍⚧️ joined the room.20:03:58
@charles:computer.surgeryCharlesit doesn't matter where the files are20:06:28
@charles:computer.surgeryCharlesjust as long as they're the right files20:06:38
@charles:computer.surgeryCharlesbecause if both of those point to a copy of the exact same nix expressions then the result will be the exact same because that's kind of the point of nix20:07:41
@lag0:matrix.orgLaguito
In reply to @charles:computer.surgery
because if both of those point to a copy of the exact same nix expressions then the result will be the exact same because that's kind of the point of nix
Ok
21:14:04
6 Jul 2025
@demoniacal:matrix.orgnandi changed their display name from 𝕯𝖊𝖒𝖔𝖓 to nandi.08:31:34
@weethet:catgirl.cloudWeetHet

Any idea how to do this without IFD?

{ pkgs, inputs, ... }:
let
  inherit (inputs) lix;
  patchedLix = pkgs.stdenv.mkDerivation {
    name = "patched-lix-source";
    phases = [
      "unpackPhase"
      "patchPhase"
      "installPhase"
    ];
    src = lix;
    patches = [ ./0001-fix-sandbox.patch ];
    installPhase = "cp -r . $out";
  };
  versionSuffix = "-pre${builtins.substring 0 8 lix.lastModifiedDate}-${
    lix.shortRev or lix.dirtyShortRev
  }";
in
{
  config.nixpkgs.overlays = [
    (self: super: {
      lix = self.callPackage "${patchedLix}/package.nix" {
        inherit versionSuffix;
        stdenv = self.clangStdenv;
      };
    })
  ];
}
11:54:17
@raitobezarius:matrix.orgraitobezariusHow do you notice IFD?12:00:32
@weethet:catgirl.cloudWeetHet Wouldn't self.callPackage "${patchedLix}/package.nix" cause IFD? 12:00:54
@raitobezarius:matrix.orgraitobezariusAh yes it does12:04:20
@emilazy:matrix.orgemilydoes the patch affect the derivation?12:16:10
@emilazy:matrix.orgemilyif not, then why the two derivations?12:16:16
@emilazy:matrix.orgemilyif yes, then it is inherently IFD12:16:24
@weethet:catgirl.cloudWeetHet

Oh yeah, I can just do this:

{ inputs, ... }:
let
  inherit (inputs) lix;
  versionSuffix = "-pre${builtins.substring 0 8 lix.lastModifiedDate}-${
    lix.shortRev or lix.dirtyShortRev
  }";
in
{
  config.nixpkgs.overlays = [
    (self: super: {
      lix =
        (self.callPackage "${lix}/package.nix" {
          inherit versionSuffix;
          stdenv = self.clangStdenv;
        }).overrideAttrs
          (old: {
            patches = (old.patches or [ ]) ++ [ ./0001-fix-sandbox.patch ];
          });
    })
  ];
}
12:24:51
@weethet:catgirl.cloudWeetHetThanks12:24:53
@9hp71n:matrix.orgghpzin How is it different thought ?
You are still doing callPackage from your inputs.lix
12:33:22
@weethet:catgirl.cloudWeetHetlix is an input, it's already eval-time12:35:31
@cathal_mullan:matrix.orgCathal changed their display name from CJ to Cathal.17:17:22
@bumble_treez:matrix.orgbumble_treezhaving some issues trying to switch over to lix from my current setup. i followed the instructions on the install page but when i go to rebuild, it just kinda... sits there and does nothing? i hear my cpu fan spin up like its doing something but theres no output from the terminal. anyone had this issue before?21:37:07
@bumble_treez:matrix.orgbumble_treeznever mind i fixed it? i think? i had to remove the setting i had for my download buffer22:17:09
7 Jul 2025
@jade_:matrix.org@jade_:matrix.org joined the room.02:40:42
@jade_:matrix.org@jade_:matrix.org i think so? i was not aware that it doesn't at least 02:41:37
@jade_:matrix.org@jade_:matrix.org that looks like a lix-module bug but I have no idea why that is happening. we should definitely just default to unknown rather than blowing up 02:43:22
@jade_:matrix.org@jade_:matrix.org

@ersei:

good:

    "lix-module": {
      "inputs": {
        "flake-utils": "flake-utils",
        "flakey-profile": "flakey-profile",
        "lix": [
          "lix"
        ],
        "nixpkgs": [
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1751240140,
        "narHash": "sha256-gbFOUtmkzzNAiHoUtySwbi+AVDgWOW8CpWmTmkoaQiI=",
        "rev": "ea74d925e650948d296fb85e4671fb0ce944f550",
        "type": "tarball",
        "url": "https://git.lix.systems/api/v1/repos/lix-project/nixos-module/archive/ea74d925e650948d296fb85e4671fb0ce944f550.tar.gz?rev=ea74d925e650948d296fb85e4671fb0ce944f550"
      },
      "original": {
        "type": "tarball",
        "url": "https://git.lix.systems/lix-project/nixos-module/archive/main.tar.gz"
      }
    },

bad:

    "lix": {
      "flake": false,
      "locked": {
        "lastModified": 1751631393,
        "narHash": "sha256-4CVRbeYExqIDpFH+QMZb5IeUGkP6kA/zHSuExYoZygk=",
        "type": "tarball",
        "url": "https://git.lix.systems/lix-project/lix/archive/main.tar.gz"
      },
      "original": {
        "type": "tarball",
        "url": "https://git.lix.systems/lix-project/lix/archive/main.tar.gz"
      }
    },

I have /no/ idea why that happened though, it appears that it somehow downloaded that tarball without recording the correct headers?

02:47:00
@jade_:matrix.org@jade_:matrix.orgeither way we should just make the lix-module more resilient to that02:47:15
@jade_:matrix.org@jade_:matrix.orgdone02:51:47
@jade_:matrix.org@jade_:matrix.org the lix team is unlikely to port this themselves as they are not especially in want of more flakes features themselves, and our git fetcher looks vastly different. if someone more enthused about flakes wants to write an implementation of the feature (which sounds reasonable enough, though the performance is guaranteed to be awful for anything but tiny repos, so I don't know who would actually need this feature who wouldn't be better served by other options like not using flakes, using lix flake-compat, or not using submodules), they can do so. You can tag me to review it, assuming it has tests. 02:56:09
@jade_:matrix.org@jade_:matrix.orgthat's a great question. sounds like a bug given i think we just use upstream boehmgc? it will probably be fixed once we kill 2.90.02:57:48

Show newer messages


Back to Room ListRoom Version: 10