nixos: swap roles for iron and hydrogen

This commit is contained in:
Primrose 2025-02-09 09:46:20 +01:00
parent a15827af8f
commit 7c8a01ca96
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
3 changed files with 46 additions and 52 deletions

View file

@ -1,9 +1,13 @@
{pkgs, ...}: {
{
pkgs,
config,
...
}: {
imports = [
./hardware-configuration.nix
];
system.stateVersion = "24.11"; # Did you read the comment?
system.stateVersion = "24.11";
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
@ -24,4 +28,39 @@
};
virtualisation.virtualbox.host.enable = true;
users.users.boinc.extraGroups = ["vboxusers"];
# hoot, the discord bot
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;
};
# typst-bot, the discord typst renderer
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;
};
# parrot, the discord music bot
services.parrot = {
enable = true;
environmentFile = config.age.secrets.parrot_token.path;
};
age.secrets.parrot_token = {
owner = "parrot";
mode = "600";
file = ../../../secrets/parrot_token.age;
};
}