updated flake
This commit is contained in:
parent
2a67ab5212
commit
0997968937
1 changed files with 10 additions and 11 deletions
17
flake.nix
17
flake.nix
|
|
@ -8,16 +8,15 @@
|
||||||
outputs = {
|
outputs = {
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
packages.x86_64-linux.sTodo = with nixpkgs.legacyPackages.x86_64-linux;
|
packages.x86_64-linux.sTodo = with nixpkgs.legacyPackages.x86_64-linux;
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "sTodo";
|
pname = "sTodo";
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
|
|
||||||
src = fetchTarball {
|
src = fetchTarball {
|
||||||
url = "https://git.stuce.ch/stuce/sTodo/releases/download/Release1/release1.tar.gz";
|
url = "https://git.stuce.ch/stuce/sTodo/releases/download/Release1/release1.tar.gz";
|
||||||
sha256 = "10jyldwmcs5zyz1k8lp3jscn7nhlvn56g0709l5jp91qimw7xiqz";
|
sha256 = "10jyldwmcs5zyz1k8lp3jscn7nhlvn56g0709l5jp91qimw7xiqz";
|
||||||
};
|
};
|
||||||
buildInputs = [zlib gmp libffi openssl];
|
buildInputs = [zlib gmp libffi openssl];
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
|
@ -61,12 +60,12 @@
|
||||||
# Systemd Service
|
# Systemd Service
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
environment.etc."sTodo" = {
|
environment.etc."sTodo" = {
|
||||||
source = fetchTarball {
|
source = "${fetchTarball {
|
||||||
url = "https://git.stuce.ch/stuce/sTodo/releases/download/Release1/release1.tar.gz";
|
url = "https://git.stuce.ch/stuce/sTodo/releases/download/Release1/release1.tar.gz";
|
||||||
sha256 = "10jyldwmcs5zyz1k8lp3jscn7nhlvn56g0709l5jp91qimw7xiqz";
|
sha256 = "10jyldwmcs5zyz1k8lp3jscn7nhlvn56g0709l5jp91qimw7xiqz";
|
||||||
|
}}/source";
|
||||||
};
|
};
|
||||||
environment.etc."sTodo/client_session_key.aes".text = "dasdhadhkjashdajhdkjahdakjsh";
|
environment.etc."sTodo/client_session_key.aes".text = "dasdhadhkjashdajhdkjahdakjsh";
|
||||||
};
|
|
||||||
systemd.services.sTodo = {
|
systemd.services.sTodo = {
|
||||||
description = "Launch a sTodo app to have a online todolist";
|
description = "Launch a sTodo app to have a online todolist";
|
||||||
after = ["network.target"];
|
after = ["network.target"];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue