Skip to content

Commit

Permalink
feat(nixos): run binary cache on cachixe
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Dec 12, 2023
1 parent c38b5f9 commit 1b4cd3c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion machines/cachixe.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ ... }:
{ config, ... }:
{
imports =
[
Expand All @@ -12,6 +12,20 @@
networking.hostName = "cachixe";
services.qemuGuest.enable = true;

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

services.nginx = {
enable = true;
recommendedProxySettings = true;
virtualHosts = {
"cachixe.local" = {
locations."/".proxyPass = "http://${config.services.nix-serve.bindAddress}:${toString config.services.nix-serve.port}";
};
};
};

# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
Expand Down

0 comments on commit 1b4cd3c

Please sign in to comment.