~ruther/nixos-config

55561a82f05ac7cc9ffc101e17b71da523ce2913 — Frantisek Bohacek 1 year, 5 months ago bda1aed
feat: make substituter out of desktop
3 files changed, 18 insertions(+), 0 deletions(-)

M hosts/configuration.nix
M hosts/desktop/default.nix
M hosts/laptop/default.nix
M hosts/configuration.nix => hosts/configuration.nix +2 -0
@@ 153,6 153,8 @@
    ];

    settings = {
      connect-timeout = 5;

      auto-optimise-store = true;           # Optimise syslinks
      substituters = [
        "https://cache.nixos.org"

M hosts/desktop/default.nix => hosts/desktop/default.nix +5 -0
@@ 82,6 82,11 @@
    };
  };

  services.nix-serve = {
    enable = true;
    secretKeyFile = "/var/cache-priv-key.pem";
  };

  # nixpkgs.overlays = [                          # This overlay will pull the latest version of Discord
  #   (self: super: {
  #     discord = super.discord.overrideAttrs (

M hosts/laptop/default.nix => hosts/laptop/default.nix +11 -0
@@ 108,4 108,15 @@
      ips = [ "${inputs.semi-secrets.wg.lan.laptopIp}/32" ];
    };
  };

  nix = {
    settings = {
      substituters = [
        "desktop.local"
      ];
      trusted-substituters = [
        "desktop.local:3XEsbBcVpKcx0ViXnZwcagllTUazVnc+Rzx5DKUU1Rs="
      ];
    };
  };
}

Do not follow this link