From a7e61f884b96d6140778bf2fcfa4d15d288011f8 Mon Sep 17 00:00:00 2001 From: seth Date: Sat, 12 Oct 2024 08:57:05 -0400 Subject: nix: use specifier expansion for state dir in module --- nix/module.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/module.nix b/nix/module.nix index 3ad3929..c02d126 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -50,7 +50,7 @@ in environment = { # using `/var/lib/private` as we have `DynamicUser` enabled - BOT_NIXPKGS_PATH = "/var/lib/private/${config.systemd.services.nixpkgs-tracker-bot.serviceConfig.StateDirectory}/nixpkgs"; + BOT_NIXPKGS_PATH = "%S/${config.systemd.services.nixpkgs-tracker-bot.serviceConfig.StateDirectory}/nixpkgs"; }; serviceConfig = { -- cgit v1.2.3