build(nasp): enable zfs if networking.hostId is set

This commit is contained in:
2024-06-14 00:13:22 +08:00
parent 7d21133d72
commit 47d8b9fa41
10 changed files with 5 additions and 18 deletions

View File

@@ -133,6 +133,11 @@ in
xkb.layout = "us";
};
}
(lib.mkIf (networking.hostId != null) {
boot.supportedFilesystems = [ "zfs" ];
boot.zfs.forceImportRoot = false;
services.zfs.autoScrub.enable = true;
})
# nvidia
(lib.mkIf (nvidiaCfg.enable) {
nixpkgs.config.nvidia.acceptLicense = true;