summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.lock44
-rw-r--r--flake.nix10
-rw-r--r--systems/atlas/default.nix2
-rw-r--r--systems/atlas/moyai.nix16
-rw-r--r--systems/atlas/teawiebot.nix16
5 files changed, 44 insertions, 44 deletions
diff --git a/flake.lock b/flake.lock
index 44a2240..8cc4821 100644
--- a/flake.lock
+++ b/flake.lock
@@ -249,6 +249,26 @@
"type": "github"
}
},
+ "moyai-bot": {
+ "inputs": {
+ "nixpkgs": [
+ "nixpkgs"
+ ]
+ },
+ "locked": {
+ "lastModified": 1738711387,
+ "narHash": "sha256-bOI4H6vmkwqpiSUbdwLtiQgc3DWU67poYtzO64S/6HA=",
+ "owner": "getchoo",
+ "repo": "moyai-bot",
+ "rev": "e769f685b3a0a530a4e0c582d021861c5d612b4f",
+ "type": "github"
+ },
+ "original": {
+ "owner": "getchoo",
+ "repo": "moyai-bot",
+ "type": "github"
+ }
+ },
"nix-darwin": {
"inputs": {
"nixpkgs": [
@@ -420,14 +440,14 @@
"home-manager": "home-manager",
"krunner-nix": "krunner-nix",
"lanzaboote": "lanzaboote",
+ "moyai-bot": "moyai-bot",
"nix-darwin": "nix-darwin",
"nix-index-database": "nix-index-database",
"nixos-wsl": "nixos-wsl",
"nixpkgs": "nixpkgs",
"nixpkgs-stable": "nixpkgs-stable",
"nixpkgs-tracker-bot": "nixpkgs-tracker-bot",
- "openwrt-imagebuilder": "openwrt-imagebuilder",
- "teawiebot": "teawiebot"
+ "openwrt-imagebuilder": "openwrt-imagebuilder"
}
},
"rust-overlay": {
@@ -465,26 +485,6 @@
"repo": "default",
"type": "github"
}
- },
- "teawiebot": {
- "inputs": {
- "nixpkgs": [
- "nixpkgs"
- ]
- },
- "locked": {
- "lastModified": 1736905095,
- "narHash": "sha256-7biHHMu+xBem7HrwXN5XMO/jvb/abDEQzK4dqz1eCC4=",
- "owner": "getchoo",
- "repo": "teawiebot",
- "rev": "282f42046d5f4f6a8d0194ec28f6ee6efb11afc4",
- "type": "github"
- },
- "original": {
- "owner": "getchoo",
- "repo": "teawiebot",
- "type": "github"
- }
}
},
"root": "root",
diff --git a/flake.nix b/flake.nix
index 479febc..1371611 100644
--- a/flake.nix
+++ b/flake.nix
@@ -98,6 +98,11 @@
};
};
+ moyai-bot = {
+ url = "github:getchoo/moyai-bot";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
+
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
@@ -128,10 +133,5 @@
systems.follows = "agenix/systems";
};
};
-
- teawiebot = {
- url = "github:getchoo/teawiebot";
- inputs.nixpkgs.follows = "nixpkgs";
- };
};
}
diff --git a/systems/atlas/default.nix b/systems/atlas/default.nix
index 7e7bfe7..3ccd4ab 100644
--- a/systems/atlas/default.nix
+++ b/systems/atlas/default.nix
@@ -4,9 +4,9 @@
(modulesPath + "/profiles/minimal.nix")
./hardware-configuration.nix
./miniflux.nix
+ ./moyai.nix
./nginx.nix
./nixpkgs-tracker-bot.nix
- ./teawiebot.nix
inputs.self.nixosModules.default
];
diff --git a/systems/atlas/moyai.nix b/systems/atlas/moyai.nix
new file mode 100644
index 0000000..1d0f1ec
--- /dev/null
+++ b/systems/atlas/moyai.nix
@@ -0,0 +1,16 @@
+{
+ config,
+ secretsDir,
+ inputs,
+ ...
+}:
+{
+ imports = [ inputs.moyai-bot.nixosModules.default ];
+
+ age.secrets.moyai-bot.file = secretsDir + "/teawieBot.age";
+
+ services.moyai-discord-bot = {
+ enable = true;
+ environmentFile = config.age.secrets.moyai-bot.path;
+ };
+}
diff --git a/systems/atlas/teawiebot.nix b/systems/atlas/teawiebot.nix
deleted file mode 100644
index 8f6d560..0000000
--- a/systems/atlas/teawiebot.nix
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- config,
- secretsDir,
- inputs,
- ...
-}:
-{
- imports = [ inputs.teawiebot.nixosModules.default ];
-
- age.secrets.teawiebot.file = secretsDir + "/teawieBot.age";
-
- services.teawiebot = {
- enable = true;
- environmentFile = config.age.secrets.teawiebot.path;
- };
-}