nix-conf/nixos-modules/asf/default.nix

34 lines
675 B
Nix
Raw Normal View History

2023-12-30 23:39:33 +01:00
{ config, lib, ... }:
2023-08-02 18:25:31 +02:00
2024-07-10 23:02:54 +02:00
let
cfg = config.jopejoe1.asf;
in
{
options.jopejoe1.asf = {
enable = lib.mkEnableOption "Enable ASF";
};
2023-12-29 16:43:40 +01:00
config = lib.mkIf cfg.enable {
services.archisteamfarm = {
enable = true;
web-ui.enable = true;
2023-08-02 18:25:31 +02:00
settings = {
2023-12-29 16:43:40 +01:00
LicenseID = "@asfLicenseID@";
SteamProtocols = 7;
2023-08-02 18:25:31 +02:00
AutoSteamSaleEvent = true;
2023-12-29 16:43:40 +01:00
};
bots.jopejoe1 = {
username = "jopejoe1";
enabled = true;
2024-10-14 19:36:42 +02:00
passwordFile = null;
2023-12-29 16:43:40 +01:00
settings = {
AutoSteamSaleEvent = true;
FarmingOrders = 9;
OnlineStatus = 0;
RemoteCommunication = 0;
};
2023-08-02 18:25:31 +02:00
};
};
};
}