update nix module

This commit is contained in:
notohh 2024-06-16 02:30:20 -04:00
parent f6dafc1b24
commit 3d09ad6696
Signed by: notohh
GPG key ID: BD47506D475EE86D

View file

@ -19,12 +19,22 @@ in {
type = types.package;
inherit (self.packages.${system}) default;
};
twitch_id = mkOption {
type = types.str;
};
twitch_oauth = mkOption {
type = types.str;
};
};
config = mkIf cfg.enable {
systemd.services.botoh = {
wantedBy = ["multi-user.target"];
serviceConfig.ExecStart = "${cfg.package}/bin/botoh";
environment = {
TWITCH_ID = cfg.twitch_id;
TWITCH_OAUTH = cfg.twitch_oauth;
};
};
};
}