Files
clan-core/nixosModules/clanCore
DavHau 501ade7de7 vars: implement migration
Migrating generated files from the facts subsystem to the vars subsystem is now possible.

HowTo:
1. declare `clan.core.vars.generators.<generator>.migrateFact = my_service` where `my_service` refers to a service from `clan.core.facts.services`
2. run `clan vers generate your_machine` or `clan machines update your_machine`

Vars will only be migrated for a generator if:
1. The facts service specified via `migrateFact` does exist
2. None of the vars to generate exist yet
3. All public var names exist in the public facts store
4. All secret var names exist in the secret fact store

If the migration is deemed possible, the generator script will not be executed. Instead the files from the public or secret facts store are read and stored into the corresponding vars store
2024-09-19 17:57:03 +02:00
..
2024-08-20 11:44:29 +00:00
2024-09-19 17:57:03 +02:00
2024-09-03 18:14:31 +02:00
2024-03-17 19:48:49 +01:00
2024-03-17 19:48:49 +01:00
2024-07-11 18:39:29 +07:00
2023-12-08 12:35:33 +01:00
2024-07-11 18:39:29 +07:00
2024-08-24 19:19:24 +02:00
2024-03-17 19:48:49 +01:00
2024-08-24 19:19:24 +02:00
2024-09-15 12:46:09 +02:00