move facts to machine subdirectory

This makes it easier to delete facts when removing machines
This commit is contained in:
Jörg Thalheim 2023-09-03 08:29:15 +02:00 committed by Mic92
parent 71c6c3b2d0
commit 4d9a59c792

View File

@ -49,7 +49,7 @@
description = ''
path to a fact which is generated by the generator
'';
default = "${config.clanCore.clanDir}/facts/${config.clanCore.machineName}/${fact.config._module.args.name}";
default = "${config.clanCore.clanDir}/machines/${config.clanCore.machineName}/facts/${fact.config._module.args.name}";
};
value = lib.mkOption {
default = builtins.readFile fact.config.path;