tsuki: add osuchan service

This commit is contained in:
Oystein Kristoffer Tveit 2023-01-04 14:32:11 +01:00
parent f6a6f7f245
commit c78b2a2c26
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
4 changed files with 18 additions and 1 deletions

View File

@ -29,6 +29,11 @@
flake = false;
};
osuchan = {
url = "git+file:///home/h7x4/git/osuchan-line-bot";
# inputs.nixpkgs.follows = "nixpkgs";
};
website = {
url = "git+https://git.nani.wtf/h7x4/nani.wtf?ref=main";
# url = "path:/home/h7x4/git/nani.wtf";
@ -65,6 +70,7 @@
vscode-server,
secrets,
fonts,
osuchan,
maunium-stickerpicker,
dotfiles,
website
@ -79,7 +85,7 @@
android_sdk.accept_license = true;
};
# overlays = [ self.overlays.lib ];
overlays = [ osuchan.overlays.default ];
};
pkgs = import nixpkgs pkgs-config;
@ -126,6 +132,7 @@
"${vscode-server}/default.nix"
secrets.outputs.nixos-config
osuchan.outputs.nixosModules.default
{
config._module.args = {

View File

@ -13,6 +13,7 @@
# ./services/keycloak.nix
./services/matrix
./services/nginx
./services/osuchan.nix
./services/plex.nix
./services/postgres.nix
./services/vscode-server.nix

View File

@ -107,6 +107,7 @@
(proxy ["py"] "http://localhost:${s ports.jupyterhub}" {
locations."/".proxyWebsockets = true;
})
(proxy ["osu"] "http://localhost:${s ports.osuchan}" {})
# (host ["vpn"] "" {})
(proxy ["hydra"] "http://localhost:${s ports.hydra}" {})
] ++ (let

View File

@ -0,0 +1,8 @@
{ secrets, config, ... }:
{
services.osuchan = {
enable = true;
port = secrets.ports.osuchan;
secretFile = "${config.machineVars.dataDrives.default}/keys/osuchan/envfile";
};
}