diff --git a/modules/base/home/fish.nix b/modules/base/home/fish.nix index a37471d..639fe83 100644 --- a/modules/base/home/fish.nix +++ b/modules/base/home/fish.nix @@ -60,6 +60,8 @@ exportMachineSSHkey = "export SOPS_AGE_KEY=$(sudo ssh-to-age -i /etc/ssh/ssh_host_ed25519_key -private-key) "; checkPR = ''cd /home/cholli/projects/NixOS/nixpkgs && ${lib.getExe pkgs.nixpkgs-review} pr $argv --post-result --systems "x86_64-linux aarch64-linux"''; + + syncfactoriomodstoserver = ''rsync -aP ~/.factorio/mods/ root@loptland:/var/lib/factorio/mods/ --delete && ssh root@loptland "systemctl restart systemd-tmpfiles-resetup.service && systemctl restart factorio.service"''; }; plugins = with pkgs.fishPlugins; [ { diff --git a/modules/server/factorio-server.nix b/modules/server/factorio-server.nix index a68a0d7..4739927 100644 --- a/modules/server/factorio-server.nix +++ b/modules/server/factorio-server.nix @@ -35,9 +35,7 @@ "token": "${config.sops.placeholder."factorio/token"}" } ''; - mode = "0400"; - owner = "factorio"; - group = "factorio"; + mode = "0444"; }; };