21 lines
263 B
Nix
21 lines
263 B
Nix
{
|
|
lib,
|
|
inputs,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib;
|
|
let
|
|
cfg = config.custom.nix;
|
|
in
|
|
{
|
|
options.custom.nix = {
|
|
useLatest = mkEnableOption "Use latest nix versions";
|
|
};
|
|
|
|
config = mkIf cfg.useLatest {
|
|
nix.package = pkgs.nixVersions.latest;
|
|
};
|
|
}
|