mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
<3 mic92
This commit is contained in:
parent
8d74606039
commit
fadc34f4a8
1 changed files with 42 additions and 31 deletions
|
|
@ -24,7 +24,13 @@
|
||||||
|
|
||||||
};
|
};
|
||||||
templates = {
|
templates = {
|
||||||
vocard.content =
|
vocard = {
|
||||||
|
path = "/persist/services/vocard/settings.json";
|
||||||
|
restartUnits = [
|
||||||
|
"vocard.service"
|
||||||
|
"lavalink.service"
|
||||||
|
];
|
||||||
|
content =
|
||||||
builtins.replaceStrings
|
builtins.replaceStrings
|
||||||
[
|
[
|
||||||
"@token@"
|
"@token@"
|
||||||
|
|
@ -42,8 +48,15 @@
|
||||||
|
|
||||||
]
|
]
|
||||||
(builtins.readFile ./settings.json);
|
(builtins.readFile ./settings.json);
|
||||||
|
};
|
||||||
|
|
||||||
lavalink.content =
|
lavalink = {
|
||||||
|
path = "/persist/services/lavalink/application.yml";
|
||||||
|
restartUnits = [
|
||||||
|
"vocard.service"
|
||||||
|
"lavalink.service"
|
||||||
|
];
|
||||||
|
content =
|
||||||
builtins.replaceStrings
|
builtins.replaceStrings
|
||||||
[
|
[
|
||||||
"@refresh_token@"
|
"@refresh_token@"
|
||||||
|
|
@ -59,13 +72,11 @@
|
||||||
(builtins.readFile ./application.yml);
|
(builtins.readFile ./application.yml);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"d /persist/services/vocard - - - - -"
|
"d /persist/services/vocard - - - - -"
|
||||||
"d /persist/services/lavalink - - - - -"
|
"d /persist/services/lavalink - - - - -"
|
||||||
|
|
||||||
"L+ /persist/services/vocard/settings.json - - - - ${config.sops.templates.vocard.path}"
|
|
||||||
"L+ /persist/services/lavalink/application.yml - - - - ${config.sops.templates.lavalink.path}"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd.services = {
|
systemd.services = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue