Merge branch 'main' of git.stuce.ch:stuce/sTodo
This commit is contained in:
commit
20ce55f22a
3 changed files with 14 additions and 9 deletions
|
|
@ -3,14 +3,14 @@ Stuce's simple todo is a web app that let's you self host a simple todolist.
|
||||||
The goal is to provide a minimalistic and fast todo list that is self hostable.
|
The goal is to provide a minimalistic and fast todo list that is self hostable.
|
||||||
## Next goals
|
## Next goals
|
||||||
- Make multi user support
|
- Make multi user support
|
||||||
- [ ] Get user by trusted header
|
- [x] Get user by trusted header
|
||||||
- [ ] Add option to enable single user (usefull for vpn single user easy setup)
|
- [ ] Add option to enable single user (usefull for vpn single user easy setup)
|
||||||
- [ ] Add menu to add other users to the group
|
- [ ] Add menu to add other users to the group
|
||||||
- [ ] make the code more readable by renaming/moving the handlers better
|
- [ ] make the code more readable by renaming/moving the handlers better
|
||||||
- [ ] write a minimal step by step guide to install with nix,
|
- [ ] write a minimal step by step guide to install with nix,
|
||||||
- [ ] add some css to make it look nicer
|
- [ ] add some css to make it look nicer
|
||||||
- [ ] add htmx to make more agreable without making js manadatory
|
- [ ] add htmx to make more agreable without making js manadatory
|
||||||
## Version 1.0.0
|
## Version 0.0.0
|
||||||
Simple todo list for **single user only** at the moment.
|
Simple todo list for **single user only** at the moment.
|
||||||
Features :
|
Features :
|
||||||
- add and delete (and soon share) groups that contain a list of todolists
|
- add and delete (and soon share) groups that contain a list of todolists
|
||||||
|
|
|
||||||
15
flake.nix
15
flake.nix
|
|
@ -10,8 +10,8 @@
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
}: let
|
}: let
|
||||||
tarball = fetchTarball {
|
tarball = fetchTarball {
|
||||||
url = "https://git.stuce.ch/stuce/sTodo/releases/download/Release1/release1.tar.gz";
|
url = "https://git.stuce.ch/stuce/sTodo/releases/download/r2/release2.tar.gz";
|
||||||
sha256 = "10jyldwmcs5zyz1k8lp3jscn7nhlvn56g0709l5jp91qimw7xiqz";
|
sha256 = "11mmq60w5da42mzlckizbrgnpzzj8a8jz69ap5k86zh6a536v456";
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
packages.x86_64-linux.sTodo = with nixpkgs.legacyPackages.x86_64-linux;
|
packages.x86_64-linux.sTodo = with nixpkgs.legacyPackages.x86_64-linux;
|
||||||
|
|
@ -19,7 +19,8 @@
|
||||||
pname = "sTodo";
|
pname = "sTodo";
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
src = tarball;
|
src = tarball;
|
||||||
buildInputs = [zlib gmp libffi openssl];
|
buildInputs = [zlib gmp libffi];
|
||||||
|
nativeBuildInputs = [openssl];
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp $src/sTodo $out/bin
|
cp $src/sTodo $out/bin
|
||||||
|
|
@ -68,10 +69,10 @@
|
||||||
environment.systemPackages = [pkgs.openssl];
|
environment.systemPackages = [pkgs.openssl];
|
||||||
users.groups."sTodo".name = "sTodo";
|
users.groups."sTodo".name = "sTodo";
|
||||||
users.users."sTodo" = {
|
users.users."sTodo" = {
|
||||||
name = "sTodo";
|
name = "sTodo";
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
group = "sTodo";
|
group = "sTodo";
|
||||||
};
|
};
|
||||||
systemd.services.sTodo.preStart = ''
|
systemd.services.sTodo.preStart = ''
|
||||||
[ -f ${sessionKey} ] || {
|
[ -f ${sessionKey} ] || {
|
||||||
"${pkgs.openssl}/bin/openssl" rand 256 > ${sessionKey}
|
"${pkgs.openssl}/bin/openssl" rand 256 > ${sessionKey}
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,10 @@
|
||||||
snapshot:
|
snapshot:
|
||||||
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/26.yaml
|
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/26.yaml
|
||||||
|
|
||||||
|
nix:
|
||||||
|
enable: true
|
||||||
|
pure: false
|
||||||
|
|
||||||
# User packages to be built.
|
# User packages to be built.
|
||||||
# Various formats can be used as shown in the example below.
|
# Various formats can be used as shown in the example below.
|
||||||
#
|
#
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue