From ce7ca5450fd8fea9d2ffbbea4e8eafe345ebd44c Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Sun, 21 Jul 2024 14:00:10 +0200 Subject: [PATCH] switch nix implementation to lix --- modules/nixpkgs.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/modules/nixpkgs.nix b/modules/nixpkgs.nix index 6f282ae..761d1ae 100644 --- a/modules/nixpkgs.nix +++ b/modules/nixpkgs.nix @@ -12,6 +12,24 @@ in { example = ["steam"]; }; + imports = [ + # this switches the nix implementation to lix everywhere, but means recompiling lix every build. + # https://lix.systems/add-to-config/ + (let + module = fetchTarball { + name = "source"; + url = "https://git.lix.systems/lix-project/nixos-module/archive/2.90.0.tar.gz"; + sha256 = "sha256-yEO2cGNgzm9x/XxiDQI+WckSWnZX63R8aJLBRSXtYNE="; + }; + lixSrc = fetchTarball { + name = "source"; + url = "https://git.lix.systems/lix-project/lix/archive/2.90.0.tar.gz"; + sha256 = "sha256-f8k+BezKdJfmE+k7zgBJiohtS3VkkriycdXYsKOm3sc="; + }; + in import "${module}/module.nix" { lix = lixSrc; } + ) + ]; + config = { nixpkgs.config = { # make nixos-unstable availiable as 'pkgs.unstable'