added users
This commit is contained in:
parent
95ffbf6300
commit
2866223518
1 changed files with 6 additions and 1 deletions
|
|
@ -66,7 +66,12 @@
|
||||||
source = "${tarball}/static";
|
source = "${tarball}/static";
|
||||||
};
|
};
|
||||||
environment.systemPackages = [pkgs.openssl];
|
environment.systemPackages = [pkgs.openssl];
|
||||||
|
groups."sTodo".name = "sTodo";
|
||||||
|
users."sTodo" = {
|
||||||
|
name = "sTodo";
|
||||||
|
isSystemUser = true;
|
||||||
|
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}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue