Commit graph

82 commits

Author SHA1 Message Date
r-vdp
af853c014c
Rename EtcTree -> FileTree. 2023-04-13 12:07:09 +02:00
r-vdp
b83ab41394
Add TODO item. 2023-04-11 22:03:33 +02:00
r-vdp
95f792005c
Extra debug logging. 2023-04-11 21:55:39 +02:00
r-vdp
d3c8c6923f
Rework error handling and merge the two state files. 2023-04-11 21:55:26 +02:00
r-vdp
903655cb52
Simplify toplevel error handling. 2023-04-07 11:28:57 +02:00
r-vdp
5b4e7938f5
Impprove error messages when a wrong flake attr was specified. 2023-04-06 13:19:57 +02:00
r-vdp
f864149440
Always reload the daemon on deactivate. 2023-03-30 15:02:14 +02:00
r-vdp
360b0ce3c5
Fix issue with symlinking already existing directories.
We will now link the contents in that case, instead of the whole dir.
2023-03-30 15:01:34 +02:00
r-vdp
05e9306f21
Set required experimental features internally. 2023-03-29 11:45:15 +02:00
r-vdp
1e9d3be430
Print eval failures to the debug log. 2023-03-29 11:38:29 +02:00
r-vdp
01073b251d
Set default log level to info. 2023-03-29 11:06:59 +02:00
r-vdp
015935f46e
Move the test module into a separate dir. 2023-03-24 16:35:02 +01:00
r-vdp
0cc421ead0
Rename --flake-uri to --flake. 2023-03-24 16:19:18 +01:00
r-vdp
65321376e8
Implement deactivate with a target host + documentation 2023-03-23 17:07:04 +01:00
r-vdp
9278cc8be8
Allow for a job monitor to be reused. 2023-03-23 14:23:43 +01:00
r-vdp
4460250457
Do not overwrite unmanaged files in /etc. 2023-03-23 11:53:22 +01:00
r-vdp
f7edf3a52f
Move the logic to serialise and deserialise EtcTrees into the type's impl. 2023-03-23 11:52:41 +01:00
r-vdp
47f32ccea7
Use TODO everywhere. 2023-03-22 23:16:25 +01:00
r-vdp
e60fa080b4
Small refactors. 2023-03-22 23:15:41 +01:00
r-vdp
fe41f93e82
Remove unused compose function. 2023-03-22 17:52:34 +01:00
r-vdp
c9a47913f4
Add the possibility to define assertions to be checked before activation. 2023-03-22 15:52:56 +01:00
r-vdp
02a0e81d6d
Avoid manual construction of paths. 2023-03-22 15:48:27 +01:00
r-vdp
542f0fea95
Don't reload the systemd daemon when it's not needed. 2023-03-21 23:59:26 +01:00
r-vdp
10ee13b5b7
Refactor to reduce repetitive code. 2023-03-21 17:44:19 +01:00
r-vdp
743be9537c
Extract as a function. 2023-03-21 16:47:59 +01:00
r-vdp
43a2af24ae
Avoid killing systemd by properly restoring /run/systemd/system 2023-03-21 16:35:08 +01:00
r-vdp
58353436c2
Complete rework of the systemd logic. 2023-03-21 16:14:12 +01:00
r-vdp
6282ee5357
Refactor the code for the services to do less copying. 2023-03-20 10:49:32 +01:00
r-vdp
6a7910bab1
Avoid an unneeded extra "etc" directory. 2023-03-17 15:47:56 +01:00
r-vdp
527e0269ff
Small optimisations in the systemd module. 2023-03-17 14:49:50 +01:00
R-VdP
e5f7e5f5f1
Use & instead of calling .as_path() 2023-03-16 13:44:59 +01:00
R-VdP
bacaae7878
Reduce duplication. 2023-03-16 12:05:13 +01:00
R-VdP
f569c59eee
Pass the correct closure to the update_state call. 2023-03-16 11:59:44 +01:00
R-VdP
687c533478
Pass the status along to the delete_action so that we can act correctly on non-empty dirs. 2023-03-16 11:59:20 +01:00
R-VdP
126cad884b
Handle flake URIs ending in # 2023-03-15 20:43:04 +01:00
R-VdP
25ac812c53
Be a bit more flexible regarding the flake-uri argument. 2023-03-15 19:51:56 +01:00
R-VdP
ed99b39f6c
Improve log output. 2023-03-15 14:05:52 +01:00
R-VdP
306e055922
Check if an existing file is managed before copying. 2023-03-15 14:05:11 +01:00
R-VdP
95d8fe7583
Add EtcTree::get_status. 2023-03-14 21:06:06 +01:00
R-VdP
a3e5318442
Clean up use statements. 2023-03-14 21:05:49 +01:00
R-VdP
15dd869682
Move the systemsConfigs key so that every entry defines its system. Determine flake attrs automatically. 2023-03-14 20:37:35 +01:00
R-VdP
5f72cae0bd
Properly clean up dnagling unmanaged entries in the state file. 2023-03-14 17:14:39 +01:00
R-VdP
5b91600523
Properly clean up dnagling unmanaged entries in the state file. 2023-03-14 17:06:18 +01:00
R-VdP
16b3a09558
Refactor Result handling. 2023-03-14 16:40:01 +01:00
R-VdP
95f9897766
Cleanup of EtcTree. 2023-03-14 16:39:47 +01:00
R-VdP
0e5a2c4bd7
Move EtcTree to its own module. 2023-03-14 11:36:56 +01:00
R-VdP
f98bc65631
Finish implementation of EtcTree. 2023-03-14 11:06:55 +01:00
R-VdP
e8e21ee2d5
Implement EtcTree::update_state 2023-03-13 18:50:16 +01:00
R-VdP
74d422bad6
Extra test case. 2023-03-10 21:39:28 +01:00
R-VdP
c7a66c76ed
WIP, etc tree implementation. 2023-03-10 21:18:35 +01:00