factorio: Set secrets owner

This commit is contained in:
Erwin Boskma 2024-11-12 20:34:34 +01:00
parent d96bf4f608
commit 60578c5ad0
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk

View file

@ -47,8 +47,27 @@
firewall.trustedInterfaces = [ "tailscale0" ];
};
services = {
factorio = {
enable = true;
game-name = "Blocks";
description = "It's cityblocks";
lan = true;
openFirewall = true;
saveName = "Blocks";
admins = [ "eboskma" ];
allowedPlayers = [ "eboskma" ];
extraSettingsFile = config.sops.secrets.factorio-config.path;
};
};
systemd = {
services.logrotate-checkconf.enable = false;
services = {
factorio.serviceConfig = {
User = "factorio";
};
logrotate-checkconf.enable = false;
};
network = {
enable = true;
@ -81,23 +100,12 @@
sudo.enable = false;
};
services = {
factorio = {
enable = true;
game-name = "Blocks";
description = "It's cityblocks";
lan = true;
openFirewall = true;
saveName = "Blocks";
admins = [ "eboskma" ];
allowedPlayers = [ "eboskma" ];
extraSettingsFile = config.sops.secrets.factorio-config.path;
};
};
sops.defaultSopsFile = ./secrets.yaml;
sops.secrets = {
factorio-config = { };
factorio-config = {
owner = "factorio";
group = "factorio";
};
};
system.stateVersion = "24.11";