Add a host for testing i_only_boot_zfs.

This commit is contained in:
Tom Alexander
2025-10-27 14:56:27 -04:00
parent 09355dd927
commit 588e434b56
30 changed files with 273 additions and 270 deletions

View File

@@ -0,0 +1,28 @@
{
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.
nix.extraOptions = ''
substitute = false
'';
nix.settings.substituters = lib.mkForce [ ];
};
}