modules: services: rename 'nix-cache'
I'm about to modify the module to use a different cache implementation, so this name is more appropriate.
This commit is contained in:
parent
4571a39c25
commit
ab59054518
|
@ -93,7 +93,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
passwordFile = secrets."nextcloud/password".path;
|
passwordFile = secrets."nextcloud/password".path;
|
||||||
};
|
};
|
||||||
nix-serve = {
|
nix-cache = {
|
||||||
enable = true;
|
enable = true;
|
||||||
secretKeyFile = secrets."nix-serve/cache-key".path;
|
secretKeyFile = secrets."nix-serve/cache-key".path;
|
||||||
};
|
};
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
./navidrome
|
./navidrome
|
||||||
./nextcloud
|
./nextcloud
|
||||||
./nginx
|
./nginx
|
||||||
./nix-serve
|
./nix-cache
|
||||||
./paperless
|
./paperless
|
||||||
./pirate
|
./pirate
|
||||||
./podgrab
|
./podgrab
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
# Binary cache through nix-serve
|
# Binary cache through nix-serve
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.my.services.nix-serve;
|
cfg = config.my.services.nix-cache;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.my.services.nix-serve = with lib; {
|
options.my.services.nix-cache = with lib; {
|
||||||
enable = mkEnableOption "nix-serve binary cache";
|
enable = mkEnableOption "nix binary cache";
|
||||||
|
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
type = types.port;
|
type = types.port;
|
||||||
|
@ -16,7 +16,7 @@ in
|
||||||
|
|
||||||
secretKeyFile = mkOption {
|
secretKeyFile = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
example = "/run/secrets/nix-serve";
|
example = "/run/secrets/nix-cache";
|
||||||
description = "Secret signing key for the cache";
|
description = "Secret signing key for the cache";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue