mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 21:39:23 +02:00
move nixos modules to nixos-modules
This commit is contained in:
parent
7394c5f317
commit
611796f02e
29 changed files with 225 additions and 7 deletions
33
nixos-modules/asf/default.nix
Normal file
33
nixos-modules/asf/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue