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;
|
|
|
|
passwordFile = "/var/lib/asf/pw";
|
|
|
|
settings = {
|
|
|
|
AutoSteamSaleEvent = true;
|
|
|
|
FarmingOrders = 9;
|
|
|
|
OnlineStatus = 0;
|
|
|
|
RemoteCommunication = 0;
|
|
|
|
};
|
2023-08-02 18:25:31 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|