From e829798d867be05395a3ef7ea6905800ce840bf3 Mon Sep 17 00:00:00 2001 From: Christoph Hollizeck Date: Wed, 10 Dec 2025 00:43:38 +0100 Subject: [PATCH 1/2] factorio: secret was not working and sync mods easier --- modules/base/home/fish.nix | 2 ++ modules/server/factorio-server.nix | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) 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"; }; }; From 7973ec82beb270dca3a7cacaae5ae9f172a90e0c Mon Sep 17 00:00:00 2001 From: Christoph Hollizeck Date: Wed, 10 Dec 2025 00:44:04 +0100 Subject: [PATCH 2/2] chore: cleanup --- modules/hosts/nixberry/default.nix | 1 - modules/hosts/yggdrasil/default.nix | 1 - 2 files changed, 2 deletions(-) diff --git a/modules/hosts/nixberry/default.nix b/modules/hosts/nixberry/default.nix index a4fb43d..4ac8b72 100644 --- a/modules/hosts/nixberry/default.nix +++ b/modules/hosts/nixberry/default.nix @@ -38,7 +38,6 @@ topLevel: { with topLevel.config.flake.modules.nixos; with inputs.nixos-raspberrypi.nixosModules; [ - inputs.catppuccin.nixosModules.catppuccin raspberry-pi-5.base raspberry-pi-5.page-size-16k raspberry-pi-5.display-vc4 diff --git a/modules/hosts/yggdrasil/default.nix b/modules/hosts/yggdrasil/default.nix index b627bff..9c473b1 100644 --- a/modules/hosts/yggdrasil/default.nix +++ b/modules/hosts/yggdrasil/default.nix @@ -38,7 +38,6 @@ topLevel: { inputs.nixos-hardware.nixosModules.common-cpu-amd inputs.nixos-hardware.nixosModules.common-pc inputs.nixos-hardware.nixosModules.common-pc-ssd - inputs.catppuccin.nixosModules.catppuccin # System modules base