From b8cebf3584e5a45aa192004864a32fae946c5b26 Mon Sep 17 00:00:00 2001 From: stuce-bot Date: Tue, 10 Jun 2025 10:21:33 +0200 Subject: [PATCH] updated flake --- flake.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index 5b8e845..bc58153 100644 --- a/flake.nix +++ b/flake.nix @@ -1,3 +1,9 @@ +let + tarball = fetchTarball { + url = "https://git.stuce.ch/stuce/sTodo/releases/download/Release1/release1.tar.gz"; + sha256 = "10jyldwmcs5zyz1k8lp3jscn7nhlvn56g0709l5jp91qimw7xiqz"; + }; +in { description = "A flake to install sTodo"; @@ -60,10 +66,8 @@ # Systemd Service config = lib.mkIf cfg.enable { environment.etc."sTodo" = { - source = "${fetchTarball { - url = "https://git.stuce.ch/stuce/sTodo/releases/download/Release1/release1.tar.gz"; - sha256 = "10jyldwmcs5zyz1k8lp3jscn7nhlvn56g0709l5jp91qimw7xiqz"; - }}/source"; + source = "${tarball}/config"; + }; }; # environment.etc."sTodo/client_session_key.aes".text = "dasdhadhkjashdajhdkjahdakjsh"; systemd.services.sTodo = { @@ -84,5 +88,3 @@ }; }; }; - }; -}