diff options
| author | seth <[email protected]> | 2023-11-13 19:03:14 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-11-13 19:03:14 -0500 |
| commit | e1387ae4821a95efabb356581f2234ef4aab42cb (patch) | |
| tree | 32b5eb2932da4027a157d4e9d9fa158c0e80dddf | |
| parent | bdeb3438b635dce453310466a3ade6317fb0e0f7 (diff) | |
atlas: start hosting teawiebot
| -rw-r--r-- | flake.lock | 29 | ||||
| -rw-r--r-- | flake.nix | 9 | ||||
| -rw-r--r-- | secrets/secrets.nix | 1 | ||||
| -rw-r--r-- | secrets/systems/atlas/teawieBot.age | bin | 0 -> 721 bytes | |||
| -rw-r--r-- | systems/atlas/default.nix | 6 | ||||
| -rw-r--r-- | systems/default.nix | 6 |
6 files changed, 49 insertions, 2 deletions
@@ -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", @@ -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 Binary files differnew file mode 100644 index 0000000..2d13ddc --- /dev/null +++ b/secrets/systems/atlas/teawieBot.age 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; }; }; |
