I showed you my source code, pls respond
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
558 B

  1. # This file is controlled by /etc/dotfiles/README.org
  2. { config, options, lib, pkgs, ... }:
  3. with lib;
  4. with lib.types;
  5. let
  6. cfg = config.modules.cachix;
  7. in {
  8. options.modules.cachix = {
  9. enable = mkOption {
  10. type = bool;
  11. default = false;
  12. };
  13. };
  14. config = mkIf cfg.enable {
  15. nix = {
  16. settings = {
  17. substituters = [
  18. "https://nix-community.cachix.org"
  19. ];
  20. trusted-public-keys = [
  21. "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
  22. ];
  23. };
  24. };
  25. };
  26. }