Commit graph

583 commits

Author SHA1 Message Date
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
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
cf7d0f76d3
Fix the makeServiceConfig function. 2023-02-14 13:39:10 +01:00
R-VdP
b3c7f71456
Implement files under /etc 2023-02-13 20:24:23 +01:00
R-VdP
8b3bba30af
flake.lock: Update
Flake lock file updates:

• Updated input 'crane':
    'github:ipetkov/crane/8c34e5ecadc691dd64b31b9317eb35d7cdaa636b' (2023-02-09)
  → 'github:ipetkov/crane/6fb400ec631b22ccdbc7090b38207f7fb5cfb5f2' (2023-02-12)
• Updated input 'devshell':
    'github:numtide/devshell/6fe837bb4f540a1832522ec54604c453757836b2' (2023-02-07)
  → 'github:numtide/devshell/71e3022e3ab20bbf1342640547ef5bc14fb43bf4' (2023-02-13)
• Updated input 'flake-utils':
    'github:numtide/flake-utils/5aed5285a952e0b949eb3ba02c12fa4fcfef535f' (2022-11-02)
  → 'github:numtide/flake-utils/3db36a8b464d0c4532ba1c7dda728f4576d6d073' (2023-02-13)
• Updated input 'nix-filter':
    'github:numtide/nix-filter/e1b2f96c2a31415f362268bc48c3fccf47dff6eb' (2023-02-02)
  → 'github:numtide/nix-filter/fc282c5478e4141842f9644c239a41cfe9586732' (2023-02-13)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/fab09085df1b60d6a0870c8a89ce26d5a4a708c2' (2023-02-07)
  → 'github:NixOS/nixpkgs/d917136f550a8c36efb1724390c7245105f79023' (2023-02-12)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/ab608394886fb04b8a5df3cb0bab2598400e3634' (2023-02-06)
  → 'github:cachix/pre-commit-hooks.nix/1583077009b6ef4236d1899c0f43cf1ce1db8085' (2023-02-13)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/50ee0fa4d0eeadd97c63be57e14b01d531e79ed7' (2023-02-09)
  → 'github:oxalica/rust-overlay/1bd5d7bb2f31cbc43fb8f722e3a39a45ee4dcec8' (2023-02-13)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/e9033eca3d7139fd499f310023ddc3bb5abff515' (2023-02-09)
  → 'github:numtide/treefmt-nix/819dd7f076832838bba238eceef9a3dbfc63f5d0' (2023-02-11)
2023-02-13 20:22:09 +01:00
Ramses
42c2008170
Merge pull request #6 from R-VdP/rust_flags_systemd
Using systemdMinimal takes care of other native build deps.
2023-02-10 17:00:02 +01:00
R-VdP
fc6909bbc7
Using systemdMinimal takes care of other native build deps. 2023-02-10 12:56:55 +00:00
Ramses
aa46dc997d
Merge pull request #5 from R-VdP/fix/devshell
Enable rust to compile in dev shell with required system libraries
2023-02-10 13:44:06 +01:00
R-VdP
b758c270c7
Reload the systemd daemon at the right time. 2023-02-10 11:19:10 +00:00
Jean-François Roche
c80976f7b7 Enable rust to compile with required system libraries 2023-02-10 10:47:34 +00:00