forked from Skynet/discord-bot
fix: actually run the extra scripts
This commit is contained in:
parent
1300b7f6ec
commit
69cb8e9a3f
1 changed files with 7 additions and 1 deletions
|
@ -57,6 +57,8 @@
|
|||
HOME = cfg.home;
|
||||
DATABASE = "database.db";
|
||||
};
|
||||
|
||||
service_name = script: lib.strings.sanitizeDerivationName("${cfg.user}@${script}");
|
||||
|
||||
# oneshot scripts to run
|
||||
serviceGenerator = mapAttrs' (script: time: nameValuePair (service_name script) {
|
||||
|
@ -206,7 +208,11 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
} // serviceGenerator scripts;
|
||||
|
||||
# timers to run the above services
|
||||
systemd.timers = timerGenerator scripts;
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue