diff --git a/hosts/monolith/default.nix b/hosts/monolith/default.nix index 962addc..8aa63b8 100644 --- a/hosts/monolith/default.nix +++ b/hosts/monolith/default.nix @@ -24,6 +24,7 @@ in (modulesPath + "/installer/scan/not-detected.nix") ./partition.nix ./amdgpu.nix + ./factorio-server.nix ]; boot.initrd.availableKernelModules = [ "nvme" diff --git a/hosts/phantom/factorio-server.nix b/hosts/monolith/factorio-server.nix similarity index 75% rename from hosts/phantom/factorio-server.nix rename to hosts/monolith/factorio-server.nix index a4b13b5..0de34b1 100644 --- a/hosts/phantom/factorio-server.nix +++ b/hosts/monolith/factorio-server.nix @@ -14,11 +14,11 @@ lan = true; openFirewall = true; admins = [ "lelgenio" ]; - extraSettingsFile = config.age.secrets.phantom-factorio-settings.path; + extraSettingsFile = config.age.secrets.factorio-settings.path; }; - age.secrets.phantom-factorio-settings = { - file = ../../secrets/phantom-factorio-settings.age; + age.secrets.factorio-settings = { + file = ../../secrets/factorio-settings.age; mode = "777"; }; } diff --git a/hosts/phantom/default.nix b/hosts/phantom/default.nix index 6a246e4..e5570ee 100644 --- a/hosts/phantom/default.nix +++ b/hosts/phantom/default.nix @@ -21,7 +21,6 @@ ./invidious.nix ./davi.nix ./goofs.nix - ./factorio-server.nix ]; networking.hostName = "phantom"; diff --git a/secrets/phantom-factorio-settings.age b/secrets/factorio-settings.age similarity index 100% rename from secrets/phantom-factorio-settings.age rename to secrets/factorio-settings.age diff --git a/secrets/secrets.nix b/secrets/secrets.nix index 65f495a..f64fb4b 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -12,7 +12,7 @@ in "monolith-forgejo-runner-token.age".publicKeys = [ main_ssh_public_key ]; "lelgenio-cachix.age".publicKeys = [ main_ssh_public_key ]; "monolith-nix-serve-privkey.age".publicKeys = [ main_ssh_public_key ]; - "phantom-factorio-settings.age".publicKeys = [ main_ssh_public_key ]; + "factorio-settings.age".publicKeys = [ main_ssh_public_key ]; "phantom-nextcloud.age".publicKeys = [ main_ssh_public_key ]; "phantom-writefreely.age".publicKeys = [ main_ssh_public_key ]; "phantom-renawiki.age".publicKeys = [ main_ssh_public_key ];