From 495b9cb2e18ff7ba4ef496c2a1f47424bd000e50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Tue, 3 Dec 2024 22:42:01 +0100 Subject: [PATCH] Remove pirate usage of Nix Apparently Nix 2.24 doesn't like dirty git repos ("lock file contains unlocked input") and makes it known by failing, which tipped me that I wasn't using Lix everywhere. --- flake.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index e00bd60..6394ddf 100644 --- a/flake.nix +++ b/flake.nix @@ -78,9 +78,15 @@ }; flakeTools = { self }: flake-utils.lib.eachDefaultSystem (system: let - pkgs = import nixpkgs (nixpkgsConfig // { - inherit system; - }); + pkgs = import nixpkgs + (nixpkgsConfig // { + inherit system; + # We do an overlay here so nixos-rebuild and other use lix. + # We don't do an overlay for the whole system because lix is not binary compatible. + overlays = [ + (self: super: { nix = super.lix; }) + ]; + }); in { apps = {