Skip to content

Commit

Permalink
hydrogen: +typst-bot
Browse files Browse the repository at this point in the history
  • Loading branch information
leana8959 committed Sep 29, 2024
1 parent a6707d1 commit 89ca3bc
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions nix/configurations/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ in
modules = [
self.nixosModules.i_am_builder
inputs.hoot.nixosModules.default
self.nixosModules.typst-bot
];
};
};
Expand Down
20 changes: 16 additions & 4 deletions nix/configurations/host/hydrogen/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,25 @@
};

# hoot, the discord bot
services.hoot.enable = true;
services.hoot.environmentFile = config.age.secrets.hoot_token.path;
services.hoot.configDir = "/var/hoot";

services.hoot = {
enable = true;
environmentFile = config.age.secrets.hoot_token.path;
configDir = "/var/hoot";
};
age.secrets.hoot_token = {
owner = "hoot";
mode = "600";
file = ../../secrets/hoot_token.age;
};

services.typst-bot = {
enable = true;
environmentFile = config.age.secrets.typst-bot_token.path;
dataDir = "/var/typst-bot";
};
age.secrets.typst-bot_token = {
owner = "typst-bot";
mode = "600";
file = ../../secrets/typst-bot_token.age;
};
}
1 change: 1 addition & 0 deletions nix/configurations/secrets/secrets.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ in
"restic_backblaze_env.age".publicKeys = all;

"hoot_token.age".publicKeys = all;
"typst-bot_token.age".publicKeys = all;
}
Binary file added nix/configurations/secrets/typst-bot_token.age
Binary file not shown.

0 comments on commit 89ca3bc

Please sign in to comment.