factorio: secret was not working and sync mods easier

This commit is contained in:
Christoph Hollizeck 2025-12-10 00:43:38 +01:00
parent 88b0c54270
commit e829798d86
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
2 changed files with 3 additions and 3 deletions

View file

@ -60,6 +60,8 @@
exportMachineSSHkey = "export SOPS_AGE_KEY=$(sudo ssh-to-age -i /etc/ssh/ssh_host_ed25519_key -private-key) 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"''; 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; [ plugins = with pkgs.fishPlugins; [
{ {

View file

@ -35,9 +35,7 @@
"token": "${config.sops.placeholder."factorio/token"}" "token": "${config.sops.placeholder."factorio/token"}"
} }
''; '';
mode = "0400"; mode = "0444";
owner = "factorio";
group = "factorio";
}; };
}; };