summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.lock29
-rw-r--r--flake.nix9
-rw-r--r--secrets/secrets.nix1
-rw-r--r--secrets/systems/atlas/teawieBot.agebin0 -> 721 bytes
-rw-r--r--systems/atlas/default.nix6
-rw-r--r--systems/default.nix6
6 files changed, 49 insertions, 2 deletions
diff --git a/flake.lock b/flake.lock
index f0025e0..5e38898 100644
--- a/flake.lock
+++ b/flake.lock
@@ -512,7 +512,8 @@
"nur": "nur",
"openwrt-imagebuilder": "openwrt-imagebuilder",
"parts": "parts",
- "pre-commit": "pre-commit"
+ "pre-commit": "pre-commit",
+ "teawiebot": "teawiebot"
}
},
"rust-overlay": {
@@ -554,6 +555,32 @@
"repo": "default",
"type": "github"
}
+ },
+ "teawiebot": {
+ "inputs": {
+ "nixpkgs": [
+ "nixpkgs"
+ ],
+ "parts": [
+ "parts"
+ ],
+ "pre-commit": [
+ "pre-commit"
+ ]
+ },
+ "locked": {
+ "lastModified": 1699920098,
+ "narHash": "sha256-KWqQZynu3MJ/jS2ySaTVLqH8JqFQoEs9B2rW6oU6wvo=",
+ "owner": "getchoo",
+ "repo": "teawiebot",
+ "rev": "928d1ab5caa5ad1f6e22a869686c77626e53e7e0",
+ "type": "github"
+ },
+ "original": {
+ "owner": "getchoo",
+ "repo": "teawiebot",
+ "type": "github"
+ }
}
},
"root": "root",
diff --git a/flake.nix b/flake.nix
index 1a13ac3..501c88d 100644
--- a/flake.nix
+++ b/flake.nix
@@ -116,6 +116,15 @@
nixpkgs-stable.follows = "nixpkgs";
};
};
+
+ teawiebot = {
+ url = "github:getchoo/teawiebot";
+ inputs = {
+ nixpkgs.follows = "nixpkgs";
+ parts.follows = "parts";
+ pre-commit.follows = "pre-commit";
+ };
+ };
};
outputs = {parts, ...} @ inputs:
diff --git a/secrets/secrets.nix b/secrets/secrets.nix
index 7ebc07a..bd1fb57 100644
--- a/secrets/secrets.nix
+++ b/secrets/secrets.nix
@@ -14,4 +14,5 @@ in {
"systems/atlas/tailscaleAuthKey.age".publicKeys = atlas;
"systems/atlas/cloudflaredCreds.age".publicKeys = atlas;
"systems/atlas/cloudflareApiKey.age".publicKeys = atlas;
+ "systems/atlas/teawieBot.age".publicKeys = atlas;
}
diff --git a/secrets/systems/atlas/teawieBot.age b/secrets/systems/atlas/teawieBot.age
new file mode 100644
index 0000000..2d13ddc
--- /dev/null
+++ b/secrets/systems/atlas/teawieBot.age
Binary files differ
diff --git a/systems/atlas/default.nix b/systems/atlas/default.nix
index 93b2081..d241658 100644
--- a/systems/atlas/default.nix
+++ b/systems/atlas/default.nix
@@ -17,6 +17,8 @@
hermetic = false;
};
+ age.secrets.teawiebot.file = ../../secrets/systems/atlas/teawieBot.age;
+
boot = {
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
@@ -30,6 +32,10 @@
services = {
resolved.enable = false;
+ teawiebot = {
+ enable = true;
+ environmentFile = config.age.secrets.teawiebot.path;
+ };
};
users.users.atlas = {
diff --git a/systems/default.nix b/systems/default.nix
index 40073c5..023dc59 100644
--- a/systems/default.nix
+++ b/systems/default.nix
@@ -59,7 +59,11 @@ in {
atlas = {
builder = inputs.nixpkgs-stable.lib.nixosSystem;
system = "aarch64-linux";
- modules = server;
+ modules =
+ [
+ inputs.teawiebot.nixosModules.default
+ ]
+ ++ server;
};
};