use latest nix versions
This commit is contained in:
@@ -4,5 +4,6 @@
|
||||
./index.nix
|
||||
./ld.nix
|
||||
./settings.nix
|
||||
./latest.nix
|
||||
];
|
||||
}
|
||||
|
||||
14
modules/nix/latest.nix
Normal file
14
modules/nix/latest.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user