From 55561a82f05ac7cc9ffc101e17b71da523ce2913 Mon Sep 17 00:00:00 2001 From: Frantisek Bohacek Date: Thu, 26 Oct 2023 19:08:22 +0200 Subject: [PATCH] feat: make substituter out of desktop --- hosts/configuration.nix | 2 ++ hosts/desktop/default.nix | 5 +++++ hosts/laptop/default.nix | 11 +++++++++++ 3 files changed, 18 insertions(+) diff --git a/hosts/configuration.nix b/hosts/configuration.nix index d3f6bf0..9d3025a 100644 --- a/hosts/configuration.nix +++ b/hosts/configuration.nix @@ -153,6 +153,8 @@ ]; settings = { + connect-timeout = 5; + auto-optimise-store = true; # Optimise syslinks substituters = [ "https://cache.nixos.org" diff --git a/hosts/desktop/default.nix b/hosts/desktop/default.nix index 99967e1..280224c 100644 --- a/hosts/desktop/default.nix +++ b/hosts/desktop/default.nix @@ -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 ( diff --git a/hosts/laptop/default.nix b/hosts/laptop/default.nix index cbb2174..914a8ba 100644 --- a/hosts/laptop/default.nix +++ b/hosts/laptop/default.nix @@ -108,4 +108,15 @@ ips = [ "${inputs.semi-secrets.wg.lan.laptopIp}/32" ]; }; }; + + nix = { + settings = { + substituters = [ + "desktop.local" + ]; + trusted-substituters = [ + "desktop.local:3XEsbBcVpKcx0ViXnZwcagllTUazVnc+Rzx5DKUU1Rs=" + ]; + }; + }; } -- 2.48.1