summaryrefslogtreecommitdiff
path: root/systems/atlas
diff options
context:
space:
mode:
authorseth <[email protected]>2023-12-22 12:21:26 -0500
committerseth <[email protected]>2023-12-23 03:09:13 +0000
commit4cc4e1fec5775a15663eb4d91d171276aa04ecf4 (patch)
tree5c2c4047b0162cd8b93b6c1d98535e122fd74b7b /systems/atlas
parent22bca10b77d06ea7706b6baaff2d796a58985b96 (diff)
atlas: separate teawiebot module
Diffstat (limited to 'systems/atlas')
-rw-r--r--systems/atlas/default.nix8
-rw-r--r--systems/atlas/teawiebot.nix12
2 files changed, 13 insertions, 7 deletions
diff --git a/systems/atlas/default.nix b/systems/atlas/default.nix
index 2a8346f..836aef7 100644
--- a/systems/atlas/default.nix
+++ b/systems/atlas/default.nix
@@ -1,17 +1,15 @@
{
config,
pkgs,
- secretsDir,
...
}: {
imports = [
./hardware-configuration.nix
./miniflux.nix
./nginx.nix
+ ./teawiebot.nix
];
- age.secrets.teawiebot.file = secretsDir + "/teawieBot.age";
-
boot = {
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
@@ -25,10 +23,6 @@
services = {
resolved.enable = false;
- teawiebot = {
- enable = true;
- environmentFile = config.age.secrets.teawiebot.path;
- };
};
users.users.atlas = {
diff --git a/systems/atlas/teawiebot.nix b/systems/atlas/teawiebot.nix
new file mode 100644
index 0000000..dac2998
--- /dev/null
+++ b/systems/atlas/teawiebot.nix
@@ -0,0 +1,12 @@
+{
+ config,
+ secretsDir,
+ ...
+}: {
+ age.secrets.teawiebot.file = secretsDir + "/teawieBot.age";
+
+ services.teawiebot = {
+ enable = true;
+ environmentFile = config.age.secrets.teawiebot.path;
+ };
+}