update flakes, fix module's wants/wantedby stuff

This commit is contained in:
Aaron Bieber 2024-07-24 09:19:25 -06:00
parent 66436432d7
commit 719084455e
No known key found for this signature in database
2 changed files with 7 additions and 4 deletions

View File

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1713273223, "lastModified": 1721834098,
"narHash": "sha256-zW16nLdJaa7uB0Z+Up6mWkPYiHtc3CO29QdlmTN7Cds=", "narHash": "sha256-EgcH9NzOoW0sgnzWCxgMTDPSAW8TvpZsqJI7PAoAEhw=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c65021a7b2ddfd5889886a9f59d03122c06d3201", "rev": "997332b0816e693d7985138f78757280245f7933",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -65,7 +65,10 @@ in {
systemd.services.gostart = { systemd.services.gostart = {
enable = true; enable = true;
description = "gostart server"; description = "gostart server";
wantedBy = [ "network-online.target" ]; wants =
[ "network-online.target" "multi-user.target" ];
before = [ "matrix-synapse.service" ];
wantedBy = [ "multi-user.target" ];
after = [ "network-online.target" ]; after = [ "network-online.target" ];
environment = { HOME = "${cfg.dataDir}"; }; environment = { HOME = "${cfg.dataDir}"; };