2025-10-27 14:56:27 -04:00
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
pkgs,
|
|
|
|
|
...
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports = [ ];
|
|
|
|
|
|
|
|
|
|
options.me = {
|
|
|
|
|
dont_use_substituters.enable = lib.mkOption {
|
|
|
|
|
type = lib.types.bool;
|
|
|
|
|
default = false;
|
|
|
|
|
example = true;
|
|
|
|
|
description = "Whether we want to install dont_use_substituters.";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
config = lib.mkIf config.me.dont_use_substituters.enable {
|
|
|
|
|
# Disable substituters to avoid risk of cache poisoning.
|
2025-11-29 20:53:41 -05:00
|
|
|
nix.settings.substitute = false;
|
2026-01-11 16:38:56 -05:00
|
|
|
nix.settings.substituters = lib.mkOverride 99 [ ];
|
2025-10-27 14:56:27 -04:00
|
|
|
};
|
|
|
|
|
}
|