mirror of
https://github.com/thiloho/nixos-config.git
synced 2025-11-22 03:21:35 +01:00
Update systemd services
This commit is contained in:
@@ -175,7 +175,6 @@
|
|||||||
todoapp = {
|
todoapp = {
|
||||||
description = "Todo application to plan your daily tasks effectively";
|
description = "Todo application to plan your daily tasks effectively";
|
||||||
wantedBy = ["multi-user.target"];
|
wantedBy = ["multi-user.target"];
|
||||||
wants = ["network-online.target"];
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
Environment = "PORT=5173 DOTENV_CONFIG_PATH=${config.age.secrets.todos-environment-file.path}";
|
Environment = "PORT=5173 DOTENV_CONFIG_PATH=${config.age.secrets.todos-environment-file.path}";
|
||||||
@@ -186,6 +185,7 @@
|
|||||||
};
|
};
|
||||||
todoapp-check-due-dates = {
|
todoapp-check-due-dates = {
|
||||||
description = "Set is_overdue for todo in database to true if todo is overdue";
|
description = "Set is_overdue for todo in database to true if todo is overdue";
|
||||||
|
wantedBy = ["timers.target"];
|
||||||
path = [
|
path = [
|
||||||
pkgs.postgresql_15
|
pkgs.postgresql_15
|
||||||
];
|
];
|
||||||
@@ -195,14 +195,12 @@
|
|||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
User = "postgres";
|
User = "postgres";
|
||||||
};
|
};
|
||||||
wantedBy = ["timers.target"];
|
|
||||||
partOf = [ "todoapp.service" ];
|
partOf = [ "todoapp.service" ];
|
||||||
startAt = "daily";
|
startAt = "daily";
|
||||||
};
|
};
|
||||||
denbot = {
|
denbot = {
|
||||||
description = "Thilo's Den discord bot";
|
description = "Thilo's Den discord bot";
|
||||||
wantedBy = ["multi-user.target"];
|
wantedBy = ["multi-user.target"];
|
||||||
wants = ["network-online.target"];
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
ExecStartPre = [
|
ExecStartPre = [
|
||||||
|
|||||||
Reference in New Issue
Block a user