34 lines
652 B
Nix
34 lines
652 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
|
|
let
|
|
name = "lix";
|
|
cfg = config.nixowos.defaults.${name};
|
|
in
|
|
{
|
|
options.nixowos.defaults.${name} = {
|
|
enable = lib.mkEnableOption name;
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
# use lix, a fork of nix
|
|
# see: https://lix.systems/about
|
|
nix.package = pkgs.lixPackageSets.latest.lix;
|
|
# overlays so that all nix tools use lix
|
|
nixpkgs.overlays = [
|
|
(final: prev: {
|
|
inherit (prev.lixPackageSets.latest)
|
|
nixpkgs-review
|
|
nix-eval-jobs
|
|
nix-fast-build
|
|
colmena
|
|
;
|
|
})
|
|
];
|
|
nix.settings.log-format = "multiline-with-logs";
|
|
};
|
|
}
|