Skip to content

Commit

Permalink
etna: add ukubot
Browse files Browse the repository at this point in the history
  • Loading branch information
uku3lig committed Feb 2, 2024
1 parent 0a4a220 commit c460d98
Show file tree
Hide file tree
Showing 6 changed files with 109 additions and 2 deletions.
84 changes: 82 additions & 2 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
};

ukubot-rs = {
url = "github:uku3lig/ukubot-rs";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
};
};

outputs = {flake-parts, ...} @ inputs:
Expand Down
13 changes: 13 additions & 0 deletions secrets/etna/ukubotRsEnv.age
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBsd1M5ejJVNmFTSGcwR1pT
SWUvMVNRSnNGSGR6WFpjZDNHZVpheHdNYnlBCjVtbFNPL2FGVDJEdGVtaFlLMUFK
Smw0eXhvbStSeFJrTnNOdUgxbGp5Rk0KLT4gWDI1NTE5IGlYcGttMmUyYi9rYVZ6
di9PK0xSTUpXOVRTckdlOFMwaWY1V3R4Vko4QzQKTGE5cnZtd2MzbnMvb3RyUGtp
Yk1DMkllS2R4bjBHbE9vYmJuL3k4Z2x1awotPiBYMjU1MTkgeUdCTkFLaWVNRWZV
TUFzdTk3L1dFZEs1V3JqNU9wdXlmdnRjaEJ1TlBqQQpHajJVNVFZd2lHZHdRSkZ3
b0NXRGhrTU5UejJLMmVja3d5ODgvQVE1NUZJCi0tLSBKY3RqM052b3haVzNXc1I4
SUZTaTZzSEhZZmgrZGkvbXBRdGFFZGRZL3NrCpKih9v0HxE509uL0VIPCOD5XLgm
UNzpfuxGDhzCMVagTlp0v/ra7yeZcYtpQVIkLxeGI0sgQyH/oytDCcNzOOmymaF8
gOGuht94I+pPDQ1NtsKWSUMNWuf5JzY3VQ84O17XNMpcmr0sS7wLuPr/G7i86f+z
Kcs=
-----END AGE ENCRYPTED FILE-----
1 change: 1 addition & 0 deletions secrets/secrets.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ in {
"etna/rootPassword.age".publicKeys = main ++ [etna];
"etna/tunnelCreds.age".publicKeys = main ++ [etna];
"etna/apiRsEnv.age".publicKeys = main ++ [etna];
"etna/ukubotRsEnv.age".publicKeys = main ++ [etna];
}
1 change: 1 addition & 0 deletions systems/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ in {
server
++ (with inputs; [
api-rs.nixosModules.default
ukubot-rs.nixosModules.default
]);
};
};
Expand Down
6 changes: 6 additions & 0 deletions systems/etna/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
};

apiRsEnv.file = "${path}/apiRsEnv.age";
ukubotRsEnv.file = "${path}/ukubotRsEnv.age";
};

boot.loader.systemd-boot.enable = true;
Expand All @@ -19,6 +20,11 @@
environmentFile = config.age.secrets.apiRsEnv.path;
};

ukubot-rs = {
enable = true;
environmentFile = config.age.secrets.ukubotRsEnv.path;
};

cloudflared = {
enable = true;
tunnels."57f51ad7-25a0-45f3-b113-0b6ae0b2c3e5" = {
Expand Down

0 comments on commit c460d98

Please sign in to comment.