update nix module
This commit is contained in:
parent
f6dafc1b24
commit
3d09ad6696
1 changed files with 10 additions and 0 deletions
|
@ -19,12 +19,22 @@ in {
|
||||||
type = types.package;
|
type = types.package;
|
||||||
inherit (self.packages.${system}) default;
|
inherit (self.packages.${system}) default;
|
||||||
};
|
};
|
||||||
|
twitch_id = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
|
twitch_oauth = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
systemd.services.botoh = {
|
systemd.services.botoh = {
|
||||||
wantedBy = ["multi-user.target"];
|
wantedBy = ["multi-user.target"];
|
||||||
serviceConfig.ExecStart = "${cfg.package}/bin/botoh";
|
serviceConfig.ExecStart = "${cfg.package}/bin/botoh";
|
||||||
|
environment = {
|
||||||
|
TWITCH_ID = cfg.twitch_id;
|
||||||
|
TWITCH_OAUTH = cfg.twitch_oauth;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue