From ab590545184198e6479a8ac1564df2234d8808ef Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 19 Aug 2023 12:34:22 +0200 Subject: [PATCH] modules: services: rename 'nix-cache' I'm about to modify the module to use a different cache implementation, so this name is more appropriate. --- hosts/nixos/porthos/services.nix | 2 +- modules/services/default.nix | 2 +- modules/services/{nix-serve => nix-cache}/default.nix | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) rename modules/services/{nix-serve => nix-cache}/default.nix (85%) diff --git a/hosts/nixos/porthos/services.nix b/hosts/nixos/porthos/services.nix index 7653eb5..0342864 100644 --- a/hosts/nixos/porthos/services.nix +++ b/hosts/nixos/porthos/services.nix @@ -93,7 +93,7 @@ in enable = true; passwordFile = secrets."nextcloud/password".path; }; - nix-serve = { + nix-cache = { enable = true; secretKeyFile = secrets."nix-serve/cache-key".path; }; diff --git a/modules/services/default.nix b/modules/services/default.nix index 86badf5..b27570d 100644 --- a/modules/services/default.nix +++ b/modules/services/default.nix @@ -20,7 +20,7 @@ ./navidrome ./nextcloud ./nginx - ./nix-serve + ./nix-cache ./paperless ./pirate ./podgrab diff --git a/modules/services/nix-serve/default.nix b/modules/services/nix-cache/default.nix similarity index 85% rename from modules/services/nix-serve/default.nix rename to modules/services/nix-cache/default.nix index 0cf1573..4c04acf 100644 --- a/modules/services/nix-serve/default.nix +++ b/modules/services/nix-cache/default.nix @@ -1,11 +1,11 @@ # Binary cache through nix-serve { config, lib, pkgs, ... }: let - cfg = config.my.services.nix-serve; + cfg = config.my.services.nix-cache; in { - options.my.services.nix-serve = with lib; { - enable = mkEnableOption "nix-serve binary cache"; + options.my.services.nix-cache = with lib; { + enable = mkEnableOption "nix binary cache"; port = mkOption { type = types.port; @@ -16,7 +16,7 @@ in secretKeyFile = mkOption { type = types.str; - example = "/run/secrets/nix-serve"; + example = "/run/secrets/nix-cache"; description = "Secret signing key for the cache"; };