flake updated
This commit is contained in:
parent
0aac40808e
commit
39e68d7d82
1 changed files with 8 additions and 1 deletions
|
|
@ -29,6 +29,7 @@
|
|||
nixosModules.sTodo = {
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.services.sTodo;
|
||||
|
|
@ -63,7 +64,13 @@
|
|||
environment.etc."sTodo" = {
|
||||
source = "${tarball}/config";
|
||||
};
|
||||
# environment.etc."sTodo/client_session_key.aes".text = "dasdhadhkjashdajhdkjahdakjsh";
|
||||
environment.systemPackages = [pkgs.openssl];
|
||||
|
||||
systemd.services.sTodo.preStart = ''
|
||||
[ -f /etc/sTodo/client_session_key.aes ] || {
|
||||
"${pkgs.openssl}/bin/openssl" rand -base64 32 > /etc/sTodo/client_session_key.aes
|
||||
}
|
||||
'';
|
||||
systemd.services.sTodo = {
|
||||
description = "Launch a sTodo app to have a online todolist";
|
||||
after = ["network.target"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue