folder fix

This commit is contained in:
Julian 2023-04-28 18:46:51 +00:00
parent 77d362211d
commit 382219e6fe
Signed by: NotNite
GPG key ID: BD91A5402CCEB08A

View file

@ -89,9 +89,7 @@
after = [ "network.target" ];
preStart = ''
mkdir -p /var/lib/u
mkdir -p /var/lib/u/files
chown -R ${cfg.user}:${cfg.group} /var/lib/u
cat > /var/lib/u/.env <<EOF
DATABASE_URL="sqlite:/var/lib/u/u.db"
@ -118,6 +116,7 @@
users = mkIf (cfg.user == "u") {
u = {
home = "/var/lib/u";
createHome = true;
group = cfg.group;
isSystemUser = true;
};