Commit graph

52 commits

Author SHA1 Message Date
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
R-VdP
cf91b29724
WIP 2023-03-08 00:24:10 +01:00
R-VdP
06bc73beae
Copy the closure when running a build with --target_host. 2023-02-21 12:15:46 +01:00
R-VdP
3280073a0f
Implement --target-host 2023-02-20 20:19:54 +01:00
R-VdP
49f30480ea
Clean up format strings. 2023-02-17 13:29:41 +01:00
R-VdP
f861aa6d2a
Avoid unneeded clone. 2023-02-17 13:22:38 +01:00
R-VdP
4cde2facf9
When building, print the raw store path to stdout. 2023-02-17 11:55:22 +01:00
R-VdP
71c2e5bf21
Use anyhow::bail! 2023-02-17 11:51:12 +01:00
R-VdP
1cce38559c
Handle nix output better. 2023-02-17 11:49:16 +01:00
R-VdP
e28ba15456
Add a deactivate subcommand. 2023-02-16 16:43:05 +01:00
R-VdP
642c8be096
Add documentation. 2023-02-15 14:16:47 +01:00
R-VdP
0d1067ac72
Implement better CLI API (closes #7). 2023-02-15 12:51:44 +01:00
R-VdP
972d27b977
Store the profile in a subdirectory of /nix/var/nix/profiles
Otherwise the grub installation script treats them as system profiles and tries to include them in the bootloader menu (See 5eb6139626/nixos/modules/system/boot/loader/grub/install-grub.pl (L570)).
2023-02-15 11:13:43 +01:00
R-VdP
e2e0e74a74
Improve error handling. 2023-02-14 13:39:21 +01:00
R-VdP
b3c7f71456
Implement files under /etc 2023-02-13 20:24:23 +01:00
R-VdP
b758c270c7
Reload the systemd daemon at the right time. 2023-02-10 11:19:10 +00:00
R-VdP
49f92dd6b8
Use crane to build faster. 2023-02-09 16:26:23 +00:00
R-VdP
7a8fe92371
Better argument name. 2023-02-09 15:05:42 +00:00
R-VdP
9aa059887b
Work on properly implementing the activation of systemd services. 2023-02-09 15:04:27 +00:00
R-VdP
c3be9ceb19
Write generation state into a state file and restructure the services.json file produced by nix. 2023-02-09 10:25:04 +00:00
R-VdP
8f31818a27
Move the profile to the system level. 2023-02-08 14:31:09 +00:00
R-VdP
1620a81d15
Split code in modules. 2023-02-08 14:10:16 +00:00
R-VdP
50b4212a06
Activate services using DBus. 2023-02-07 23:19:02 +00:00
R-VdP
b291685a98
Add auto-generated DBus bindings.
Code largely taken from git.sr.ht/~rycee/sd-switch
2023-02-03 15:58:42 +00:00
R-VdP
4592e2bacc
Improve error handling and logging. 2023-02-03 11:17:20 +00:00
R-VdP
10b7ba5954
Small fixes. 2023-02-03 00:15:25 +00:00
R-VdP
a9632c07d1
Improve how we save the service-manager profile. 2023-02-03 00:08:12 +00:00
R-VdP
c83afe6788
More detailed output when activating. 2023-02-02 17:44:13 +00:00
R-VdP
f784f06107
Continue implementing basic features. 2023-02-02 17:31:10 +00:00
Jean-François Roche
17576e2ca2
Fix clippy error 2023-02-02 00:55:38 +01:00
Jean-François Roche
942ed011c9
Add nix shell and some checks 2023-02-02 00:55:37 +01:00