Commit graph

245 commits

Author SHA1 Message Date
R-VdP
843cd69eb4
Cargo update 2023-03-16 18:07:31 +01:00
R-VdP
cdd1c88f54
flake.lock: Update
Flake lock file updates:

• Updated input 'devshell':
    'github:numtide/devshell/643d1857fea4e71e7f251cb574f59b1d63778085' (2023-03-03)
  → 'github:numtide/devshell/3e0e60ab37cd0bf7ab59888f5c32499d851edb47' (2023-03-16)
• Updated input 'flake-utils':
    'github:numtide/flake-utils/3db36a8b464d0c4532ba1c7dda728f4576d6d073' (2023-02-13)
  → 'github:numtide/flake-utils/93a2b84fc4b70d9e089d029deacc3583435c2ed6' (2023-03-15)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/5a1dc8acd977ff3dccd1328b7c4a6995429a656b' (2023-03-12)
  → 'github:NixOS/nixpkgs/ac718d02867a84b42522a0ece52d841188208f2c' (2023-03-15)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/1a20b9708962096ec2481eeb2ddca29ed747770a' (2023-03-09)
  → 'github:cachix/pre-commit-hooks.nix/32b1dbedfd77892a6e375737ef04d8efba634e9e' (2023-03-16)
• Updated input 'pre-commit-hooks/nixpkgs-stable':
    'github:NixOS/nixpkgs/2f9fd351ec37f5d479556cd48be4ca340da59b8f' (2023-01-15)
  → 'github:NixOS/nixpkgs/9b8e5abb18324c7fe9f07cb100c3cd4a29cda8b8' (2023-03-15)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/d907affef544f64bd6886fe6bcc5fa2495a82373' (2023-03-14)
  → 'github:oxalica/rust-overlay/5c1af9b9d618e02a87cdd30a3022aec0b78cd9aa' (2023-03-16)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/5ec73d38dde4c766a9ae19840fc6afa724096f00' (2023-03-12)
  → 'github:numtide/treefmt-nix/0f560a84215e79facd2833b20bfdc2033266f126' (2023-03-15)
2023-03-16 18:06:33 +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
daae141949
Add WantedBy and RequiredBy to the JSON file produced by Nix. 2023-03-15 20:43:50 +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
5ccc6b1bba
Remove nix-filter input. 2023-03-14 20:36:29 +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
9924d2ea43
flake.lock: Update
Flake lock file updates:

• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/f25d4bc2f6a0a3f9a2f15d3b9e3edb0ee5099a3d' (2023-03-13)
  → 'github:oxalica/rust-overlay/d907affef544f64bd6886fe6bcc5fa2495a82373' (2023-03-14)
2023-03-14 11:07:35 +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
043bd86663
Cargo update 2023-03-13 18:49:49 +01:00
R-VdP
dabb079eb7
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/1e2590679d0ed2cee2736e8b80373178d085d263' (2023-03-09)
  → 'github:NixOS/nixpkgs/5a1dc8acd977ff3dccd1328b7c4a6995429a656b' (2023-03-12)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/9f687941160108f89dd8bd2c650d32c15a35c7c7' (2023-03-10)
  → 'github:oxalica/rust-overlay/f25d4bc2f6a0a3f9a2f15d3b9e3edb0ee5099a3d' (2023-03-13)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/ec39cfa24342fdf0b04ae44592a191c4765f9c74' (2023-03-08)
  → 'github:numtide/treefmt-nix/5ec73d38dde4c766a9ae19840fc6afa724096f00' (2023-03-12)
2023-03-13 13:42:10 +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
055d11cbdf
Add im crate. 2023-03-10 21:13:25 +01:00
R-VdP
acb47a0c0a
Use latest stable for now. 2023-03-10 21:12:59 +01:00
R-VdP
b337e6333c
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/c90c4025bb6e0c4eaf438128a3b2640314b1c58d' (2023-03-08)
  → 'github:NixOS/nixpkgs/1e2590679d0ed2cee2736e8b80373178d085d263' (2023-03-09)
2023-03-10 21:12:07 +01:00
R-VdP
c2128a0af2
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/3c5319ad3aa51551182ac82ea17ab1c6b0f0df89' (2023-03-04)
  → 'github:NixOS/nixpkgs/c90c4025bb6e0c4eaf438128a3b2640314b1c58d' (2023-03-08)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/382bee738397ca005206eefa36922cc10df8a21c' (2023-03-03)
  → 'github:cachix/pre-commit-hooks.nix/1a20b9708962096ec2481eeb2ddca29ed747770a' (2023-03-09)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/423b16bef17c9e8e9ea515e502c0c5d0f8e51f4a' (2023-03-07)
  → 'github:oxalica/rust-overlay/9f687941160108f89dd8bd2c650d32c15a35c7c7' (2023-03-10)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/f7fcf3770c6cec6fd5f995ba94e6e6376019b9ff' (2023-02-26)
  → 'github:numtide/treefmt-nix/ec39cfa24342fdf0b04ae44592a191c4765f9c74' (2023-03-08)
2023-03-10 09:22:22 +01:00
R-VdP
cf91b29724
WIP 2023-03-08 00:24:10 +01:00
R-VdP
0df7ab21e5
flake.lock: Update
Flake lock file updates:

• Updated input 'crane':
    'github:ipetkov/crane/105e27adb70a9890986b6d543a67761cbc1964a2' (2023-03-04)
  → 'github:ipetkov/crane/5291dd0aa7a52d607fc952763ef60714e4c881d4' (2023-03-07)
• Updated input 'nix-filter':
    'github:numtide/nix-filter/fc282c5478e4141842f9644c239a41cfe9586732' (2023-02-13)
  → 'github:numtide/nix-filter/aa9ff6ce4a7f19af6415fb3721eaa513ea6c763c' (2023-03-06)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/1a9f6285d441ff438a6a1422dc3fde109d8615bf' (2023-03-05)
  → 'github:oxalica/rust-overlay/423b16bef17c9e8e9ea515e502c0c5d0f8e51f4a' (2023-03-07)
2023-03-07 09:42:55 +01:00
R-VdP
0c072cadce
Adapt to numtide/devshell#247 2023-03-05 21:28:55 +01:00
R-VdP
e85f45246d
flake.lock: Update
Flake lock file updates:

• Updated input 'crane':
    'github:ipetkov/crane/953b70da2813fb882c39890f2514e7db76fc8843' (2023-02-19)
  → 'github:ipetkov/crane/105e27adb70a9890986b6d543a67761cbc1964a2' (2023-03-04)
• Updated input 'devshell':
    'github:numtide/devshell/71e3022e3ab20bbf1342640547ef5bc14fb43bf4' (2023-02-13)
  → 'github:numtide/devshell/643d1857fea4e71e7f251cb574f59b1d63778085' (2023-03-03)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/d0d55259081f0b97c828f38559cad899d351cad1' (2023-02-21)
  → 'github:NixOS/nixpkgs/3c5319ad3aa51551182ac82ea17ab1c6b0f0df89' (2023-03-04)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/c9495f017f67a11e9c9909b032dc7762dfc853cf' (2023-02-20)
  → 'github:cachix/pre-commit-hooks.nix/382bee738397ca005206eefa36922cc10df8a21c' (2023-03-03)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/6c9e8ea3ba73a9fed29ddc1cc52ade8e5c946a8d' (2023-02-22)
  → 'github:oxalica/rust-overlay/1a9f6285d441ff438a6a1422dc3fde109d8615bf' (2023-03-05)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/819dd7f076832838bba238eceef9a3dbfc63f5d0' (2023-02-11)
  → 'github:numtide/treefmt-nix/f7fcf3770c6cec6fd5f995ba94e6e6376019b9ff' (2023-02-26)
2023-03-05 21:21:51 +01:00
R-VdP
19f1e1352b
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/b69883faca9542d135fa6bab7928ff1b233c167f' (2023-02-20)
  → 'github:NixOS/nixpkgs/d0d55259081f0b97c828f38559cad899d351cad1' (2023-02-21)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/f02d590b871a6241dc55d41e799bc530e28214ce' (2023-02-21)
  → 'github:oxalica/rust-overlay/6c9e8ea3ba73a9fed29ddc1cc52ade8e5c946a8d' (2023-02-22)
2023-02-22 12:51:28 +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
d331287116
flake.lock: Update
Flake lock file updates:

• Updated input 'crane':
    'github:ipetkov/crane/cfb6efcfc706e21c84682171581168e591b265d9' (2023-02-16)
  → 'github:ipetkov/crane/953b70da2813fb882c39890f2514e7db76fc8843' (2023-02-19)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/28319deb5ab05458d9cd5c7d99e1a24ec2e8fc4b' (2023-02-15)
  → 'github:NixOS/nixpkgs/b69883faca9542d135fa6bab7928ff1b233c167f' (2023-02-20)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/5f0cba88ac4d6dd8cad5c6f6f1540b3d6a21a798' (2023-02-16)
  → 'github:cachix/pre-commit-hooks.nix/c9495f017f67a11e9c9909b032dc7762dfc853cf' (2023-02-20)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/3bab7ae4a80de02377005d611dc4b0a13082aa7c' (2023-02-16)
  → 'github:oxalica/rust-overlay/f02d590b871a6241dc55d41e799bc530e28214ce' (2023-02-21)
2023-02-21 10:52:49 +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
d428df9c72
Add a deactivation script to the system-manager profile. 2023-02-17 12:37:02 +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
9bd82bc098
flake.lock: Update
Flake lock file updates:

• Updated input 'crane':
    'github:ipetkov/crane/6fb400ec631b22ccdbc7090b38207f7fb5cfb5f2' (2023-02-12)
  → 'github:ipetkov/crane/cfb6efcfc706e21c84682171581168e591b265d9' (2023-02-16)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/d917136f550a8c36efb1724390c7245105f79023' (2023-02-12)
  → 'github:NixOS/nixpkgs/28319deb5ab05458d9cd5c7d99e1a24ec2e8fc4b' (2023-02-15)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/1583077009b6ef4236d1899c0f43cf1ce1db8085' (2023-02-13)
  → 'github:cachix/pre-commit-hooks.nix/5f0cba88ac4d6dd8cad5c6f6f1540b3d6a21a798' (2023-02-16)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/1bd5d7bb2f31cbc43fb8f722e3a39a45ee4dcec8' (2023-02-13)
  → 'github:oxalica/rust-overlay/3bab7ae4a80de02377005d611dc4b0a13082aa7c' (2023-02-16)
2023-02-16 23:19:05 +01:00
R-VdP
e28ba15456
Add a deactivate subcommand. 2023-02-16 16:43:05 +01:00
R-VdP
e2f386c21e
Set stateVersion by default. 2023-02-15 15:12:39 +01:00
R-VdP
40c413d25a
Set defaults for the system-manager options. 2023-02-15 15:11:44 +01:00
R-VdP
62dd6e21d1
Fix nix package name. 2023-02-15 14:20:03 +01:00