From 8ad02dd74daad3010b20ab9f2c661906066521d2 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 31 Oct 2023 14:00:47 +0000 Subject: [PATCH] hosts: nixos: porthos: system: disable cache We're never going to get a cache hit, since this is the host for that cache. --- hosts/nixos/porthos/default.nix | 1 + hosts/nixos/porthos/system.nix | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 hosts/nixos/porthos/system.nix diff --git a/hosts/nixos/porthos/default.nix b/hosts/nixos/porthos/default.nix index 326d1cd..2dea899 100644 --- a/hosts/nixos/porthos/default.nix +++ b/hosts/nixos/porthos/default.nix @@ -9,6 +9,7 @@ ./networking.nix ./secrets ./services.nix + ./system.nix ./users.nix ]; diff --git a/hosts/nixos/porthos/system.nix b/hosts/nixos/porthos/system.nix new file mode 100644 index 0000000..07b9947 --- /dev/null +++ b/hosts/nixos/porthos/system.nix @@ -0,0 +1,12 @@ +# Core system configuration +{ ... }: +{ + my.system = { + nix = { + cache = { + # This server is the one serving the cache, don't try to query it + selfHosted = false; + }; + }; + }; +}