From b6e1137d89a90859d8943d9377e4d14091a11af6 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Wed, 2 Oct 2024 08:01:57 +0200 Subject: Rename secret_{file => path}, add max_idle_time to config, Merge {Raw,}Config --- flake.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 036e356..93158a6 100644 --- a/flake.nix +++ b/flake.nix @@ -132,7 +132,7 @@ }); }; - secret-file = mkOption { + secret-path = mkOption { description = "Path to file containing the secret given to GitHub."; type = types.path; example = "/run/github_secret.txt"; @@ -192,7 +192,7 @@ serviceConfig = let config = { - "secret_file" = cfg.secret-file; + "secret_path" = cfg.secret-path; "commands" = cfg.commands; }; @@ -250,7 +250,7 @@ ]; # The secret to be used when authenticating event's signature. - secret-file = toString (pkgs.writeText "secret.txt" "mysecret"); + secret-path = toString (pkgs.writeText "secret.txt" "mysecret"); }; environment.systemPackages = [ -- cgit v1.2.3