From 31994d38f6ca341577e7bcc07f56e5858fc0d204 Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Sun, 19 May 2024 13:27:41 +0200 Subject: [PATCH] service/nix-binary-cache: create and use in main host --- hosts/main.nix | 1 + nix-os/services/nix-binary-cache.nix | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 nix-os/services/nix-binary-cache.nix diff --git a/hosts/main.nix b/hosts/main.nix index e09af33..49a9b8f 100644 --- a/hosts/main.nix +++ b/hosts/main.nix @@ -20,5 +20,6 @@ ../nix-os/adb.nix ../nix-os/account.nix ../nix-os/xdg-default-apps.nix + ../nix-os/services/nix-binary-cache.nix ]; } \ No newline at end of file diff --git a/nix-os/services/nix-binary-cache.nix b/nix-os/services/nix-binary-cache.nix new file mode 100644 index 0000000..aaff003 --- /dev/null +++ b/nix-os/services/nix-binary-cache.nix @@ -0,0 +1,8 @@ +{ + config = { + services.nix-serve = { + enable = true; + secretKeyFile = "/var/cache-priv-key.pem"; + }; + }; +}