Michal Sojka
cb56e9662a
Fix pre-popopulate script name ( #99 )
...
Running
nix run 'github:numtide/system-manager' -- --target-host XXX pre-populate --flake .
fails with the following error:
bash: line 1: /nix/store/mij0x8wba9baq05863shk7hbdw39azvr-system-manager/bin/pre-populate: No such file or directory
The reason is that the script has no dash in its name (see
fe08568d4a/nix/modules/default.nix (L175) ).
This commit fixes the problem.
2024-06-30 16:22:59 +02:00
r-vdp
16c145bdbb
Add debug output showing the nix commands being run.
2023-10-12 12:20:51 +02:00
r-vdp
e51a1d3ed0
Provide an implementation for systemd-tmpfiles.
...
Co-authored-by: aanderse <aaron@fosslib.net>
Co-authored-by: jfroche <jfroche@pyxel.be>
2023-10-12 11:16:37 +02:00
r-vdp
1454525760
Fix reload for services without reload functionality.
2023-06-29 17:10:39 +02:00
Ramses
841efc2bc7
Remove outdated to-do.
2023-06-06 01:49:44 +02:00
r-vdp
7789f31548
Rename generate to register and make the activate subcommand hidden.
2023-06-06 01:25:57 +02:00
r-vdp
0f92086a83
Remove unneeded turbofish.
2023-05-29 01:24:12 +02:00
r-vdp
79eecb6251
Avoid a bit more allocation and make intentions clearer.
2023-05-29 01:22:07 +02:00
r-vdp
f584494464
Avoid allocating the nix options twide.
2023-05-29 00:49:37 +02:00
Ramses
9eb15be5ce
Only info logging by default.
2023-05-27 15:01:02 +02:00
r-vdp
b0430700b5
Allow passing options to nix.
2023-05-25 18:37:50 +02:00
r-vdp
4f2b808a29
Improve logic for store path construction.
2023-05-16 19:10:11 +02:00
r-vdp
1c4cf3611b
Extract a function.
2023-05-16 18:33:07 +02:00
r-vdp
779ba9c7a7
Don't crash if we can't canonicalise the path.
2023-05-16 18:32:48 +02:00
r-vdp
3009a5feaf
Fix typo.
2023-05-16 18:21:53 +02:00
r-vdp
77077427dd
Properly handle already existing but unmanaged files.
2023-05-16 16:51:23 +02:00
r-vdp
7e78522c02
Pre-populate accepts either a store path or a flake URI.
2023-05-16 12:00:30 +02:00
r-vdp
2901945cfd
Better error handling during generate.
2023-05-16 11:48:33 +02:00
r-vdp
8602403333
Improve error message.
2023-05-15 20:34:48 +02:00
r-vdp
c430035749
Print the store path to stdout for build and generate.
2023-05-15 20:02:16 +02:00
r-vdp
c6898f239c
Quote attribute name.
2023-05-12 16:31:05 +02:00
Ramses
f4c58ce90b
Fix handling of the --store argument. ( #12 )
2023-05-12 16:04:24 +02:00
Ramses
cead991210
Add a pre-populate subcommand. ( #11 )
2023-05-08 18:35:43 +02:00
r-vdp
2f8a9ba967
Improve error handling.
2023-04-27 01:57:04 +02:00
r-vdp
db9ba03678
Introduce an intermediate target for systemd services.
...
Restarting the active targets seems to cause issues on Ubuntu,
restarting certain targets causes the display manager to exit.
2023-04-27 00:21:59 +02:00
r-vdp
862f26d3e4
Remove left-over comment.
2023-04-27 00:15:58 +02:00
r-vdp
94119b4ae6
Improve error handling.
2023-04-13 12:08:05 +02:00
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