mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-04 10:36:34 +01:00
30 lines
681 B
Nix
30 lines
681 B
Nix
{ config, lib, ... }:
|
|
|
|
let cfg = config.jopejoe1.asf;
|
|
in {
|
|
options.jopejoe1.asf = { enable = lib.mkEnableOption "Enable ASF"; };
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
services.archisteamfarm = {
|
|
enable = true;
|
|
web-ui.enable = true;
|
|
settings = {
|
|
LicenseID = "@asfLicenseID@";
|
|
SteamProtocols = 7;
|
|
AutoSteamSaleEvent = true;
|
|
};
|
|
bots.jopejoe1 = {
|
|
username = "jopejoe1";
|
|
enabled = true;
|
|
passwordFile = "/var/lib/asf/pw";
|
|
settings = {
|
|
AutoSteamSaleEvent = true;
|
|
FarmingOrders = 9;
|
|
OnlineStatus = 0;
|
|
RemoteCommunication = 0;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|