[roles] No config change unless enabled

This commit is contained in:
2024-10-05 18:17:42 -07:00
parent 1a857399a6
commit ff3a0a4738
8 changed files with 58 additions and 48 deletions

View File

@@ -16,15 +16,16 @@ in
};
};
config = {
fileSystems."/media" = {
device = "10.0.0.43:/media";
fsType = "nfs";
options = [
"defaults"
"nofail"
"softreval"
];
config = mkIf cfg.enable
{
fileSystems."/media" = {
device = "10.0.0.43:/media";
fsType = "nfs";
options = [
"defaults"
"nofail"
"softreval"
];
};
};
};
}