diff --git a/hosts/x86_64-linux/beleth/default.nix b/hosts/x86_64-linux/beleth/default.nix index f486e72..2a7e827 100644 --- a/hosts/x86_64-linux/beleth/default.nix +++ b/hosts/x86_64-linux/beleth/default.nix @@ -11,6 +11,7 @@ with lib; { ./caddy.nix ./comin.nix ./jellyfin.nix + ./factorio.nix ./calibre-web.nix ./transmission.nix ./external-users.nix diff --git a/hosts/x86_64-linux/beleth/factorio.nix b/hosts/x86_64-linux/beleth/factorio.nix new file mode 100644 index 0000000..1c98d05 --- /dev/null +++ b/hosts/x86_64-linux/beleth/factorio.nix @@ -0,0 +1,12 @@ +{pkgs, config, lib, ...}: { + services.factorio = { + enable = true; + openFirewall = true; + extraSettingsFile = /etc/factorio_settings.json; + admins = [ "frottingqueen" ]; + }; + + sops.secrets.factorio_server_settings = { + path = /etc/factorio_settings.json; + }; +} diff --git a/secrets.yaml b/secrets.yaml index d9ef6fb..bb489a7 100644 --- a/secrets.yaml +++ b/secrets.yaml @@ -10,6 +10,7 @@ spotify: password: ENC[AES256_GCM,data:a6QfuyRKBGqYmax2lAglg5KHXJrj,iv:qAYuu4uC1u6Y/1LnAjOpWH3bAlLcEplFVC3C2Ac79M4=,tag:I75pDbsYNH1x5cPD4U7jzQ==,type:str] sourcehut_comin_access_token: ENC[AES256_GCM,data:JWoTW5sYAqQ+VsrUnU94756jBpnbXRfiWOO4GOBql3Rq/GB5ANvMPlXFndwLRvYddHuVag1woeX+9khyib6MUKBx3uwmB6fpkPyXvtcTPwyFT10mLx1nJfdRytjxcezyQTHQSP+V8+TaimeYS7WhsxGNQovlCr0/NtStCsu8PoyGOWMvNA2DsS87cJxrXm6CaAHxYE7/cajjewzmAd9cuZzEAjF69dfd0NxFEarmiMrvmw==,iv:ztNg2nD+5/vpg5i0BW/elAV7DXVpKJIvMIHKq/zRb2M=,tag:+cs8X1pop56QSrI7RfsjmA==,type:str] #ENC[AES256_GCM,data:UmGDAz/qalmP6Z2r4VSH802m9ddAoCQ8IaAtAmyQV+Psg0rNpLF7du5ykDepTyHAb6YAG1k2k9ziqfV8P9SUNMvLC7D3TmFk9oZtW8HLrN84tcbp9i4HDFfQ+Q==,iv:PzHlSFj0H4/eSab9j3y9lYAFUPMEb+G74M2/2cmv70A=,tag:GFstk6NgtJCNm207zO1fjQ==,type:comment] +factorio_server_settings: ENC[AES256_GCM,data:zC9P1i7iiAe4/UI/RjFvQE6ABPKyrDznq4rPzhCziWcZzvl+0xr39EOhO2Mqg9XuaXhT9bg5mO3r9MCj6j/SmnQp3T4LnRiCiLmqmIH4uI9sJGkAVWr/SYjDecjEuEY2sjqhw1LOxujP7zXkiAdE3XUUA0AfsvckpRQa1SDI8rdiOiaYM3EOnqhmKaT01Kxq54B6N2ZbTJ0Y0A==,iv:bkZBrLFbuWb9B/wxeky6ZrmWs0Doj++rW/PWHozXVZc=,tag:goe3jiuuZ3Q38/NqCH209A==,type:str] sops: kms: [] gcp_kms: [] @@ -70,8 +71,8 @@ sops: VGtmR3doRnppdVVXMVhsZXpQZWZISlkKSS7vbqi2XCewPlYNTpkHiJmoL9vOKH6y uO0HiakJeBuxji7v40hyBtTYsdJcm/TtCZeGk/NwGW8GBGe3LCd29g== -----END AGE ENCRYPTED FILE----- - lastmodified: "2024-11-02T00:28:02Z" - mac: ENC[AES256_GCM,data:RUNKE1JPIOO+LTOXWSIPTBl7/lJBcjjwl1GtVB4NOBMkdVOCVZlAm/HNqm8Wwupv8J5MFaf7DBjpJXu0COWOZ+/GEoVI4cuvsUeyYClOONdY90+9ymbKoxdYue7CM6WjKuCGDDYDpthPvAaxeWOKs4bRTyJqU5f05S/d++0hJZE=,iv:wMksKbpnnX4ET2CZ4YkmRv9g8NBaSydq+H3XpK08OOw=,tag:P+/N77yYr9SBByu5YbZeWw==,type:str] + lastmodified: "2024-11-17T19:26:19Z" + mac: ENC[AES256_GCM,data:0mZfOPX6Ik8yo8j+ez5ejZdxahPpjVRi/209t62RgocLCbke/wfPBHpJ6KnJNlXbNeLZ5CgI8Fs5OClEmqjNWjd47WI2gHlbcinsQaxGZzpnQRfBTpIOhjS6oysG7QfFJV0T0wPXg1S0W5T0klQavoKmS/sn+AYHccYbyViLUkM=,iv:2uzFk+XCOD4+brO6juqfq688Ml6zg/OiGsO9bZqisj4=,tag:VIGGxCWo3OopGJdhr9OoAg==,type:str] pgp: [] unencrypted_suffix: _unencrypted version: 3.9.1