Commit d7de0e4
Fixup various issues with the nix.conf / nix.custom.conf split (#1393)
* fixup: no newline at the beginning of the config
* Use extra-experimental-features instead of experimental-features
* Move the user's ssl cert file into the custom config
* Add a footer to the config
So that we can place the "include" directive at the end of our standard
config, allowing users to override our defaults.
* Force `experimental-features` passed in `--extra-conf` to become `extra-experimental-features`
Otherwise, users may accidentally override our `experimental-features`
default of `nix-command` and `flakes`. If a user truly wanted to override
this, they can manually modify the `nix.conf` / `nix.custom.conf` after
the install completes.
* Temporarily write trusted-users specified in `--extra-conf` to nix.conf _AND_ nix.custom.conf
Cachix relies on the presence of this setting in the system
`/etc/nix/nix.conf` so that it can provide users with a helpful error if
`cachix use`ing a cache would not actually work for them (because only
trusted users can modify the trusted caches and trusted cache signing
keys in their user-specific configuration).
* Test trusted-user, experimental-features changes
* fixup: spacing, naming nits
---------
Co-authored-by: Graham Christensen <graham@grahamc.com>1 parent 35c93ca commit d7de0e4
File tree
3 files changed
+329
-54
lines changed- src/action
- base
- common
3 files changed
+329
-54
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | | - | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| |||
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
| 55 | + | |
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
| |||
56 | 61 | | |
57 | 62 | | |
58 | 63 | | |
| 64 | + | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
64 | 70 | | |
65 | 71 | | |
| 72 | + | |
66 | 73 | | |
67 | 74 | | |
68 | 75 | | |
| |||
405 | 412 | | |
406 | 413 | | |
407 | 414 | | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
408 | 421 | | |
409 | 422 | | |
410 | 423 | | |
| |||
466 | 479 | | |
467 | 480 | | |
468 | 481 | | |
469 | | - | |
470 | | - | |
471 | | - | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
472 | 489 | | |
473 | 490 | | |
474 | 491 | | |
475 | 492 | | |
476 | 493 | | |
477 | 494 | | |
| 495 | + | |
| 496 | + | |
478 | 497 | | |
479 | 498 | | |
480 | 499 | | |
| |||
494 | 513 | | |
495 | 514 | | |
496 | 515 | | |
497 | | - | |
498 | | - | |
499 | | - | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
500 | 523 | | |
501 | 524 | | |
502 | 525 | | |
| |||
524 | 547 | | |
525 | 548 | | |
526 | 549 | | |
527 | | - | |
528 | | - | |
529 | | - | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
530 | 557 | | |
531 | 558 | | |
532 | 559 | | |
| |||
558 | 585 | | |
559 | 586 | | |
560 | 587 | | |
561 | | - | |
562 | | - | |
563 | | - | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
564 | 595 | | |
565 | 596 | | |
566 | 597 | | |
| |||
605 | 636 | | |
606 | 637 | | |
607 | 638 | | |
608 | | - | |
| 639 | + | |
609 | 640 | | |
610 | 641 | | |
611 | 642 | | |
| |||
647 | 678 | | |
648 | 679 | | |
649 | 680 | | |
650 | | - | |
651 | | - | |
652 | | - | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
653 | 688 | | |
654 | 689 | | |
655 | 690 | | |
| |||
681 | 716 | | |
682 | 717 | | |
683 | 718 | | |
684 | | - | |
685 | | - | |
686 | | - | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
687 | 726 | | |
688 | 727 | | |
689 | 728 | | |
| |||
0 commit comments