Commit ea722ee
Write user config to nix.custom.conf, defer nix.conf to determinate when using determinate (#1379)
* Delete the determinate-specific config generation, and leave it up to determinate-nixd init
* Write out the default config options to nix.conf, and the custom nix.conf settings to nix.custom.conf, which are included by nix.conf.
* optional standard nix config
* derp tests
* Apply suggestions from code review
Co-authored-by: Cole Helbling <cole.helbling@determinate.systems>
* flake.lock: Add
Flake lock file updates:
• Added input 'crane':
'github:ipetkov/crane/72e2d02dbac80c8c86bf6bf3e785536acf8ee926?narHash=sha256-3aH/0Y6ajIlfy7j52FGZ%2Bs4icVX0oHhqBzRdlOeztqg%3D' (2024-12-21)
• Added input 'determinate':
'https://api.flakehub.com/f/pinned/DeterminateSystems/determinate/0.1.165%2Brev-657395244a854da1bc71e38454958ecd57c0e241/0193b781-6c27-7703-bca6-fc9648fca81d/source.tar.gz?narHash=sha256-nUTutqzg/Z0eEXrC1ACTa4a9Ik5Iyxgqo8uL9DYib7I%3D' (2024-12-11)
• Added input 'determinate/determinate-nixd-aarch64-darwin':
'https://install.determinate.systems/determinate-nixd/rev/0de4fff87b3bbf09c3e510c4a57eb014f98ab247/macOS?narHash=sha256-QF2Zi8Avz39kbh9iZMZoKiZLU5pdTPlicYE21291QSY%3D'
• Added input 'determinate/determinate-nixd-aarch64-linux':
'https://install.determinate.systems/determinate-nixd/rev/0de4fff87b3bbf09c3e510c4a57eb014f98ab247/aarch64-linux?narHash=sha256-brFdvFUU9BLrwwDuwi841peDI/kwN1tzi9RZEIdPM%2B0%3D'
• Added input 'determinate/determinate-nixd-x86_64-darwin':
follows ''
• Added input 'determinate/determinate-nixd-x86_64-linux':
'https://install.determinate.systems/determinate-nixd/rev/0de4fff87b3bbf09c3e510c4a57eb014f98ab247/x86_64-linux?narHash=sha256-WapB5UqrZpK32/TrUltUhE9Rp%2BwYAQj/0asXtL0OUSY%3D'
• Added input 'determinate/nix':
follows 'nix'
• Added input 'determinate/nixpkgs':
follows 'nixpkgs'
• Added input 'flake-compat':
'https://api.flakehub.com/f/pinned/edolstra/flake-compat/1.0.1/018afb31-abd1-7bff-a5e4-cff7e18efb7a/source.tar.gz?narHash=sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U%3D' (2023-10-04)
• Added input 'nix':
'https://api.flakehub.com/f/pinned/DeterminateSystems/nix/2.25.3/01939864-5191-788c-b898-163d916a3333/source.tar.gz?narHash=sha256-rOFE8TSwWoup%2BLPNbmtTs6oLy7lYZ12L9GN%2BaZuQQaA%3D' (2024-12-03)
• Added input 'nix/nix':
'https://api.flakehub.com/f/pinned/NixOS/nix/2.25.3/01938786-bc70-79e3-b7ee-bb61f8e7f238/source.tar.gz?narHash=sha256-T%2BwFMm3cj8pGJSwXmPuxG5pz%2B1gRDJoToF9OBxtzocA%3D' (2024-11-29)
• Added input 'nix/nix/flake-compat':
'github:edolstra/flake-compat/0f9255e01c2351cc7d116c072cb317785dd33b33?narHash=sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U%3D' (2023-10-04)
• Added input 'nix/nix/flake-parts':
'github:hercules-ci/flake-parts/9227223f6d922fee3c7b190b2cc238a99527bbb7?narHash=sha256-pQMhCCHyQGRzdfAkdJ4cIWiw%2BJNuWsTX7f0ZYSyz0VY%3D' (2024-07-03)
• Added input 'nix/nix/flake-parts/nixpkgs-lib':
follows 'nix/nix/nixpkgs'
• Added input 'nix/nix/git-hooks-nix':
'github:cachix/git-hooks.nix/f451c19376071a90d8c58ab1a953c6e9840527fd?narHash=sha256-6FPUl7HVtvRHCCBQne7Ylp4p%2BdpP3P/OYuzjztZ4s70%3D' (2024-07-15)
• Added input 'nix/nix/git-hooks-nix/flake-compat':
follows 'nix/nix'
• Added input 'nix/nix/git-hooks-nix/gitignore':
follows 'nix/nix'
• Added input 'nix/nix/git-hooks-nix/nixpkgs':
follows 'nix/nix/nixpkgs'
• Added input 'nix/nix/git-hooks-nix/nixpkgs-stable':
follows 'nix/nix/nixpkgs'
• Added input 'nix/nix/libgit2':
'github:libgit2/libgit2/36f7e21ad757a3dacc58cf7944329da6bc1d6e96?narHash=sha256-J2rCxTecyLbbDdsyBWn9w7r3pbKRMkI9E7RvRgAqBdY%3D' (2024-05-16)
• Added input 'nix/nix/nixpkgs':
'github:NixOS/nixpkgs/c3d4ac725177c030b1e289015989da2ad9d56af0?narHash=sha256-sqLwJcHYeWLOeP/XoLwAtYjr01TISlkOfz%2BNG82pbdg%3D' (2024-08-15)
• Added input 'nix/nix/nixpkgs-23-11':
'github:NixOS/nixpkgs/a62e6edd6d5e1fa0329b8653c801147986f8d446?narHash=sha256-oamiKNfr2MS6yH64rUn99mIZjc45nGJlj9eGth/3Xuw%3D' (2024-05-31)
• Added input 'nix/nix/nixpkgs-regression':
'github:NixOS/nixpkgs/215d4d0fd80ca5163643b03a33fde804a29cc1e2?narHash=sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw%3D' (2022-01-24)
• Added input 'nix/nixpkgs':
'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.2411.710194%2Brev-f9f0d5c5380be0a599b1fb54641fa99af8281539/01938be8-64ce-75c6-94d4-dbc2e4d547fe/source.tar.gz?narHash=sha256-En%2BgSoVJ3iQKPDU1FHrR6zIxSLXKjzKY%2Bpnh9tt%2BYts%3D' (2024-12-02)
• Added input 'nixpkgs':
'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.737298%2Brev-ed4a395ea001367c1f13d34b1e01aa10290f67d6/01945f5f-4175-7e72-8809-a1e482c4a443/source.tar.gz?narHash=sha256-jG/%2BMvjVY7SlTakzZ2fJ5dC3V1PrKKrUEOEE30jrOKA%3D' (2025-01-12)
* Override dnixd
* relock
* pr 190
* flake.lock: Update
Flake lock file updates:
• Updated input 'determinate/determinate-nixd-aarch64-darwin':
'https://install.determinate.systems/determinate-nixd/rev/0de4fff87b3bbf09c3e510c4a57eb014f98ab247/macOS?narHash=sha256-QF2Zi8Avz39kbh9iZMZoKiZLU5pdTPlicYE21291QSY%3D'
→ 'https://install.determinate.systems/determinate-nixd/pr/190/macOS?narHash=sha256-KnMWMa4tBS2xl8hLhzxFDj502O9vdO94qMKcXwTRmWs%3D'
• Updated input 'determinate/determinate-nixd-aarch64-linux':
'https://install.determinate.systems/determinate-nixd/rev/0de4fff87b3bbf09c3e510c4a57eb014f98ab247/aarch64-linux?narHash=sha256-brFdvFUU9BLrwwDuwi841peDI/kwN1tzi9RZEIdPM%2B0%3D'
→ 'https://install.determinate.systems/determinate-nixd/pr/190/aarch64-linux?narHash=sha256-KsslatIeQWAjUw5QcJbLH5kfAiyUQ5lQI/7D2tTYp7Q%3D'
• Updated input 'determinate/determinate-nixd-x86_64-linux':
'https://install.determinate.systems/determinate-nixd/rev/0de4fff87b3bbf09c3e510c4a57eb014f98ab247/x86_64-linux?narHash=sha256-WapB5UqrZpK32/TrUltUhE9Rp%2BwYAQj/0asXtL0OUSY%3D'
→ 'https://install.determinate.systems/determinate-nixd/pr/190/x86_64-linux?narHash=sha256-nC9ITu%2BlDhNjmnIA4uQgIxNkL4j/1hbkhVoj/KBzIwY%3D'
* breakpoint
* cole-h
* derp
* drop bph
* flake.lock: Update
Flake lock file updates:
• Updated input 'determinate/determinate-nixd-aarch64-darwin':
'https://install.determinate.systems/determinate-nixd/pr/190/macOS?narHash=sha256-KnMWMa4tBS2xl8hLhzxFDj502O9vdO94qMKcXwTRmWs%3D'
→ 'https://install.determinate.systems/determinate-nixd/pr/190/macOS?narHash=sha256-fUzQzO1z3HyWyVWQeL/beHbVFf%2BKldW0xLXqyM3vwWA%3D'
• Updated input 'determinate/determinate-nixd-aarch64-linux':
'https://install.determinate.systems/determinate-nixd/pr/190/aarch64-linux?narHash=sha256-KsslatIeQWAjUw5QcJbLH5kfAiyUQ5lQI/7D2tTYp7Q%3D'
→ 'https://install.determinate.systems/determinate-nixd/pr/190/aarch64-linux?narHash=sha256-TEg1lA%2BZgbjIxLaoRPEy/tWrYI317ICdXgZPFyWfgW8%3D'
• Updated input 'determinate/determinate-nixd-x86_64-linux':
'https://install.determinate.systems/determinate-nixd/pr/190/x86_64-linux?narHash=sha256-nC9ITu%2BlDhNjmnIA4uQgIxNkL4j/1hbkhVoj/KBzIwY%3D'
→ 'https://install.determinate.systems/determinate-nixd/pr/190/x86_64-linux?narHash=sha256-rk4VkdEsVjmiomTpza4ja3WggoNkeq8eMO9RoTujzZI%3D'
* bpa
* flake.lock: Update
Flake lock file updates:
• Updated input 'determinate/determinate-nixd-aarch64-darwin':
'https://install.determinate.systems/determinate-nixd/pr/190/macOS?narHash=sha256-fUzQzO1z3HyWyVWQeL/beHbVFf%2BKldW0xLXqyM3vwWA%3D'
→ 'https://install.determinate.systems/determinate-nixd/pr/190/macOS?narHash=sha256-XQ/0tqIfx4tWluxDjFnknQ9OeukSaiu0GIPex/bLfRY%3D'
* flake.lock: Update
Flake lock file updates:
• Updated input 'determinate/determinate-nixd-aarch64-darwin':
'https://install.determinate.systems/determinate-nixd/pr/190/macOS?narHash=sha256-XQ/0tqIfx4tWluxDjFnknQ9OeukSaiu0GIPex/bLfRY%3D'
→ 'https://install.determinate.systems/determinate-nixd/pr/190/macOS?narHash=sha256-hbYsDT0JfedS64dIRxlTfOzKqZ6St6n%2B8ekOM7kSZLs%3D'
• Updated input 'determinate/determinate-nixd-aarch64-linux':
'https://install.determinate.systems/determinate-nixd/pr/190/aarch64-linux?narHash=sha256-TEg1lA%2BZgbjIxLaoRPEy/tWrYI317ICdXgZPFyWfgW8%3D'
→ 'https://install.determinate.systems/determinate-nixd/pr/190/aarch64-linux?narHash=sha256-qhRnkCOIl8N5gUUd5csCDSKOwEypbL0Cubg7BPQ1JNc%3D'
• Updated input 'determinate/determinate-nixd-x86_64-linux':
'https://install.determinate.systems/determinate-nixd/pr/190/x86_64-linux?narHash=sha256-rk4VkdEsVjmiomTpza4ja3WggoNkeq8eMO9RoTujzZI%3D'
→ 'https://install.determinate.systems/determinate-nixd/pr/190/x86_64-linux?narHash=sha256-xKSPWKe/Q1yymVui/eI3SP1xl6oUBkWNFnmeSa61HiM%3D'
* update comment we're not using yet
* flake.lock: Update
Flake lock file updates:
• Updated input 'determinate/determinate-nixd-aarch64-darwin':
'https://install.determinate.systems/determinate-nixd/pr/190/macOS?narHash=sha256-hbYsDT0JfedS64dIRxlTfOzKqZ6St6n%2B8ekOM7kSZLs%3D'
→ 'https://install.determinate.systems/determinate-nixd/pr/190/macOS?narHash=sha256-KzLWlikcqKqgYTZqt6E71RjYc7ybREz%2BHLFNqxOjpoQ%3D'
• Updated input 'determinate/determinate-nixd-aarch64-linux':
'https://install.determinate.systems/determinate-nixd/pr/190/aarch64-linux?narHash=sha256-qhRnkCOIl8N5gUUd5csCDSKOwEypbL0Cubg7BPQ1JNc%3D'
→ 'https://install.determinate.systems/determinate-nixd/pr/190/aarch64-linux?narHash=sha256-/EPA3KEa9uIcbHx3dIsJOOML2v6YMegb8%2B2o3MGlyTo%3D'
• Updated input 'determinate/determinate-nixd-x86_64-linux':
'https://install.determinate.systems/determinate-nixd/pr/190/x86_64-linux?narHash=sha256-xKSPWKe/Q1yymVui/eI3SP1xl6oUBkWNFnmeSa61HiM%3D'
→ 'https://install.determinate.systems/determinate-nixd/pr/190/x86_64-linux?narHash=sha256-1deA6Rexdk7A9FlUNjLrxDeevO1RI6olIgIkPBhbryE%3D'
* stop after nix configuration
* Don't write the group name to nix.conf if it is the default
* drop breakpoint
* drop overrides
* flake.lock: Update
Flake lock file updates:
• Updated input 'determinate':
'https://api.flakehub.com/f/pinned/DeterminateSystems/determinate/0.1.165%2Brev-657395244a854da1bc71e38454958ecd57c0e241/0193b781-6c27-7703-bca6-fc9648fca81d/source.tar.gz?narHash=sha256-nUTutqzg/Z0eEXrC1ACTa4a9Ik5Iyxgqo8uL9DYib7I%3D' (2024-12-11)
→ 'https://api.flakehub.com/f/pinned/DeterminateSystems/determinate/0.1.168%2Brev-29d4697d480dc9ed0e0a1d260d621ac8d4b7fa41/019461c4-62df-70e8-9684-46317d87e052/source.tar.gz?narHash=sha256-guIdbsg1LBURqqoeHYIkU4ECPvYjXX2NI%2BgGeJTR9us%3D' (2025-01-13)
• Updated input 'determinate/determinate-nixd-aarch64-darwin':
'https://install.determinate.systems/determinate-nixd/pr/190/macOS?narHash=sha256-KzLWlikcqKqgYTZqt6E71RjYc7ybREz%2BHLFNqxOjpoQ%3D'
→ 'https://install.determinate.systems/determinate-nixd/tag/v0.3.0/macOS?narHash=sha256-yLy38fgeC%2BorxYylwUwLUuRUdgi9WLEflLX9j9NDIUI%3D'
• Updated input 'determinate/determinate-nixd-aarch64-linux':
'https://install.determinate.systems/determinate-nixd/pr/190/aarch64-linux?narHash=sha256-/EPA3KEa9uIcbHx3dIsJOOML2v6YMegb8%2B2o3MGlyTo%3D'
→ 'https://install.determinate.systems/determinate-nixd/tag/v0.3.0/aarch64-linux?narHash=sha256-9/HjI0v/ZLoTqOy%2B5%2BviIQh8iGjf49qMLRVthVZ3V9U%3D'
• Updated input 'determinate/determinate-nixd-x86_64-linux':
'https://install.determinate.systems/determinate-nixd/pr/190/x86_64-linux?narHash=sha256-1deA6Rexdk7A9FlUNjLrxDeevO1RI6olIgIkPBhbryE%3D'
→ 'https://install.determinate.systems/determinate-nixd/tag/v0.3.0/x86_64-linux?narHash=sha256-cyvqGm%2BWT5l3N40wSO6FSJTm7Lxm9w1owpXjAYtGAm4%3D'
---------
Co-authored-by: Cole Helbling <cole.helbling@determinate.systems>1 parent e10f304 commit ea722ee
File tree
12 files changed
+294
-260
lines changed- src
- action
- base
- common
- planner
- macos
- tests/fixtures
- linux
- macos
12 files changed
+294
-260
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| 65 | + | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
| |||
170 | 173 | | |
171 | 174 | | |
172 | 175 | | |
173 | | - | |
| 176 | + | |
174 | 177 | | |
175 | 178 | | |
176 | 179 | | |
| |||
216 | 219 | | |
217 | 220 | | |
218 | 221 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | 222 | | |
225 | 223 | | |
226 | 224 | | |
227 | 225 | | |
228 | | - | |
| 226 | + | |
229 | 227 | | |
230 | 228 | | |
231 | 229 | | |
| |||
237 | 235 | | |
238 | 236 | | |
239 | 237 | | |
240 | | - | |
| 238 | + | |
241 | 239 | | |
242 | 240 | | |
243 | 241 | | |
| |||
259 | 257 | | |
260 | 258 | | |
261 | 259 | | |
262 | | - | |
| 260 | + | |
263 | 261 | | |
264 | | - | |
| 262 | + | |
265 | 263 | | |
266 | 264 | | |
267 | | - | |
| 265 | + | |
268 | 266 | | |
269 | 267 | | |
270 | 268 | | |
271 | 269 | | |
272 | 270 | | |
273 | | - | |
| 271 | + | |
274 | 272 | | |
275 | | - | |
| 273 | + | |
276 | 274 | | |
277 | 275 | | |
278 | 276 | | |
| |||
397 | 395 | | |
398 | 396 | | |
399 | 397 | | |
400 | | - | |
401 | | - | |
402 | | - | |
| 398 | + | |
403 | 399 | | |
404 | 400 | | |
405 | 401 | | |
| |||
418 | 414 | | |
419 | 415 | | |
420 | 416 | | |
421 | | - | |
| 417 | + | |
422 | 418 | | |
423 | 419 | | |
424 | 420 | | |
425 | 421 | | |
426 | 422 | | |
427 | 423 | | |
428 | 424 | | |
429 | | - | |
| 425 | + | |
430 | 426 | | |
431 | 427 | | |
432 | 428 | | |
433 | 429 | | |
434 | | - | |
| 430 | + | |
435 | 431 | | |
436 | 432 | | |
437 | 433 | | |
| |||
440 | 436 | | |
441 | 437 | | |
442 | 438 | | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | 439 | | |
449 | | - | |
450 | | - | |
| 440 | + | |
| 441 | + | |
451 | 442 | | |
452 | 443 | | |
453 | 444 | | |
454 | 445 | | |
455 | 446 | | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
| 447 | + | |
462 | 448 | | |
463 | | - | |
| 449 | + | |
464 | 450 | | |
465 | 451 | | |
466 | 452 | | |
| |||
480 | 466 | | |
481 | 467 | | |
482 | 468 | | |
483 | | - | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
484 | 472 | | |
485 | 473 | | |
486 | 474 | | |
| |||
506 | 494 | | |
507 | 495 | | |
508 | 496 | | |
509 | | - | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
510 | 500 | | |
511 | 501 | | |
512 | 502 | | |
| |||
534 | 524 | | |
535 | 525 | | |
536 | 526 | | |
537 | | - | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
538 | 530 | | |
539 | 531 | | |
540 | 532 | | |
| |||
566 | 558 | | |
567 | 559 | | |
568 | 560 | | |
569 | | - | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
570 | 564 | | |
571 | 565 | | |
572 | 566 | | |
| |||
611 | 605 | | |
612 | 606 | | |
613 | 607 | | |
614 | | - | |
| 608 | + | |
615 | 609 | | |
616 | 610 | | |
617 | 611 | | |
| |||
653 | 647 | | |
654 | 648 | | |
655 | 649 | | |
656 | | - | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
657 | 653 | | |
658 | 654 | | |
659 | 655 | | |
| |||
685 | 681 | | |
686 | 682 | | |
687 | 683 | | |
688 | | - | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
689 | 687 | | |
690 | 688 | | |
691 | 689 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
56 | | - | |
57 | 55 | | |
58 | 56 | | |
| 57 | + | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
0 commit comments