Commit graph

247 commits

Author SHA1 Message Date
r-vdp
4b1c70daf7
test/nix/flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/5f9d1bb572e08ec432ae46c78581919d837a90f6' (2023-03-26)
  → 'github:NixOS/nixpkgs/4bb072f0a8b267613c127684e099a70e1f6ff106' (2023-03-27)
• Updated input 'system-manager':
    'github:numtide/system-manager/6f745076848b428bf6d4475f0fa468120f017220' (2023-03-28)
  → 'github:numtide/system-manager/01073b251d1fc565174ff8d89324a5709dafda97' (2023-03-29)
• Updated input 'system-manager/rust-overlay':
    'github:oxalica/rust-overlay/898c5b2e11a1bcdf056573f9b1cdf920c5ae4ed2' (2023-03-27)
  → 'github:oxalica/rust-overlay/26ef1a2029239e204e51ab3402f8aae5aa1187ed' (2023-03-28)
2023-03-29 11:15:58 +02:00
r-vdp
01073b251d
Set default log level to info. 2023-03-29 11:06:59 +02:00
r-vdp
9d81d47c03
cargo update 2023-03-28 22:49:48 +02:00
r-vdp
944f056dbb
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/5f9d1bb572e08ec432ae46c78581919d837a90f6' (2023-03-26)
  → 'github:NixOS/nixpkgs/4bb072f0a8b267613c127684e099a70e1f6ff106' (2023-03-27)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/898c5b2e11a1bcdf056573f9b1cdf920c5ae4ed2' (2023-03-27)
  → 'github:oxalica/rust-overlay/26ef1a2029239e204e51ab3402f8aae5aa1187ed' (2023-03-28)
2023-03-28 22:48:03 +02:00
r-vdp
6f74507684
Set the nixpkgs platform as a module option. 2023-03-28 14:51:16 +02:00
r-vdp
36b67321c0
Run cargo tests as part of CI. 2023-03-27 19:21:22 +02:00
r-vdp
9d46e2be2c
Use correct branch name. 2023-03-27 19:01:14 +02:00
r-vdp
74c33a3390
Fix typo. 2023-03-27 19:00:09 +02:00
r-vdp
70941d6c96
Fix CI. 2023-03-27 18:59:10 +02:00
Ramses
f760bcae4a
Create ci.yml 2023-03-27 18:59:10 +02:00
r-vdp
176b435ccc
Update repo URL. 2023-03-27 18:59:10 +02:00
r-vdp
c9c203b39d
Reformat code example. 2023-03-27 16:28:46 +02:00
r-vdp
1f5cf750e5
Put the test code in a separate flake. 2023-03-27 15:55:19 +02:00
r-vdp
d9d770da7a
cargo update 2023-03-27 15:20:41 +02:00
r-vdp
86cc9db762
flake.lock: Update
Flake lock file updates:

• Updated input 'crane':
    'github:ipetkov/crane/ec69da697357cfe7d9e8653b0cfbe73eaecca34b' (2023-03-22)
  → 'github:ipetkov/crane/72fa29510a9ce61ea7455b4469507808684f5673' (2023-03-26)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/19cf008bb18e47b6e3b4e16e32a9a4bdd4b45f7e' (2023-03-21)
  → 'github:NixOS/nixpkgs/5f9d1bb572e08ec432ae46c78581919d837a90f6' (2023-03-26)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/afbdcf305fd6f05f708fe76d52f24d37d066c251' (2023-03-24)
  → 'github:oxalica/rust-overlay/898c5b2e11a1bcdf056573f9b1cdf920c5ae4ed2' (2023-03-27)
2023-03-27 11:06:46 +02:00
r-vdp
197852e599
Refactor. 2023-03-24 17:03:33 +01:00
r-vdp
92ac83f22a
We can just stringify the normal nixpkgs flake. 2023-03-24 17:02:59 +01:00
r-vdp
6c318867c1
Formatting. 2023-03-24 16:35:57 +01: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
ec231161ed
Update README. 2023-03-24 16:05:49 +01:00
r-vdp
e2fd2e8a73
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/60c1d71f2ba4c80178ec84523c2ca0801522e0a6' (2023-03-19)
  → 'github:NixOS/nixpkgs/19cf008bb18e47b6e3b4e16e32a9a4bdd4b45f7e' (2023-03-21)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/a89d328ca7d106c3fdbbd072b6c7088ab5b798a3' (2023-03-22)
  → 'github:oxalica/rust-overlay/afbdcf305fd6f05f708fe76d52f24d37d066c251' (2023-03-24)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/0f560a84215e79facd2833b20bfdc2033266f126' (2023-03-15)
  → 'github:numtide/treefmt-nix/af75d6efe437858f9ca5535e622cfbedad1ba717' (2023-03-23)
2023-03-24 16:03:38 +01:00
r-vdp
ce4cf7149d
Major overhaul of the nix side of things, part II. 2023-03-24 16:03:20 +01:00
r-vdp
9759c2da12
Major overhaul of the nix side of things. 2023-03-24 14:14:20 +01:00
r-vdp
9aaa5e58f7
Improve README. 2023-03-23 17:07:37 +01:00
r-vdp
65321376e8
Implement deactivate with a target host + documentation 2023-03-23 17:07:04 +01:00
r-vdp
8888285a10
Update README. 2023-03-23 16:00:14 +01:00
r-vdp
84a4ddac1e
Allow to easily override the assertion for supported distros. 2023-03-23 14:57:18 +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
c05f3b9cca
cargo update 2023-03-22 15:59:36 +01:00
r-vdp
7d760e39fc
flake.lock: Update
Flake lock file updates:

• Updated input 'crane':
    'github:ipetkov/crane/2552a2d1ccf33d43259a9e00f93dbacb9e6d6bed' (2023-03-20)
  → 'github:ipetkov/crane/ec69da697357cfe7d9e8653b0cfbe73eaecca34b' (2023-03-22)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/f5efdf14ed378aac26cadded4d0c00ca91974d32' (2023-03-21)
  → 'github:oxalica/rust-overlay/a89d328ca7d106c3fdbbd072b6c7088ab5b798a3' (2023-03-22)
2023-03-22 15:59:07 +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
19edbdddb1
Add an assertion to make sure that the services passed to systemd-manager exist. 2023-03-22 11:56:58 +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
4dfdf16c3d
Add extra info to cargo. 2023-03-21 17:13:32 +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
806b1f23fd
cargo update 2023-03-21 09:53:12 +01:00
r-vdp
496b213493
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/1603d11595a232205f03d46e635d919d1e1ec5b9' (2023-03-18)
  → 'github:NixOS/nixpkgs/60c1d71f2ba4c80178ec84523c2ca0801522e0a6' (2023-03-19)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/c680a0a4144bb0931f6cebd601a3978bbafc4f64' (2023-03-20)
  → 'github:oxalica/rust-overlay/f5efdf14ed378aac26cadded4d0c00ca91974d32' (2023-03-21)
2023-03-21 09:52:43 +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
93b7c32688
cargo update 2023-03-20 10:18:12 +01:00
r-vdp
07c0ec6729
flake.lock: Update
Flake lock file updates:

• Updated input 'crane':
    'github:ipetkov/crane/5291dd0aa7a52d607fc952763ef60714e4c881d4' (2023-03-07)
  → 'github:ipetkov/crane/2552a2d1ccf33d43259a9e00f93dbacb9e6d6bed' (2023-03-20)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/ac718d02867a84b42522a0ece52d841188208f2c' (2023-03-15)
  → 'github:NixOS/nixpkgs/1603d11595a232205f03d46e635d919d1e1ec5b9' (2023-03-18)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/5c1af9b9d618e02a87cdd30a3022aec0b78cd9aa' (2023-03-16)
  → 'github:oxalica/rust-overlay/c680a0a4144bb0931f6cebd601a3978bbafc4f64' (2023-03-20)
2023-03-20 10:17:34 +01:00